This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ########################################################################### | |
| # | |
| # timeout wrapper around multiprocessing from: | |
| # http://code.activestate.com/recipes/577853-timeout-decorator-with-multiprocessing/ | |
| # modified to add crash detection without simply locking up or exitting completely | |
| # | |
| ########################################################################### | |
| class TimeoutException(Exception): | |
| pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # Original example from here: | |
| # http://www.stavros.io/posts/python-fuse-filesystem/ | |
| # modified so that the _full_path helper function also tries to find a case | |
| # insensitive match for what you asked for, using the recipe here: | |
| # http://code.activestate.com/recipes/576571-case-insensitive-filename-on-nix-systems-return-th/ | |
| # | |
| # Depends on fusepy: | |
| # https://github.com/terencehonles/fusepy |