Did I find the right examples for you? yes no

All Samples(8)  |  Call(5)  |  Derive(0)  |  Import(3)

src/a/u/autoindex-HEAD/autoindex/watcher.py   autoindex(Download)
from pyinotify import WatchManager, Notifier, ProcessEvent, EventsCodes
 
from .indexer import index
 
logger = logging.getLogger(__name__)
            # elements at once but this operation needs to be atomic.
            dist_dir = process.queue.pop()
            index(directory, only=[dist_dir])
 
    signal.signal(signal.SIGALRM, update_index)