From: Diane Trout Date: Fri, 24 Sep 2010 22:34:17 +0000 (+0000) Subject: Adjust spoolwatchers use of inotify to correspond to pyinotify 0.8.9 X-Git-Tag: 0.4.5~11 X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=dca761c5eb4e01f2dc034d39a290fc504a3cbff7 Adjust spoolwatchers use of inotify to correspond to pyinotify 0.8.9 --- diff --git a/htsworkflow/automation/spoolwatcher.py b/htsworkflow/automation/spoolwatcher.py index b3a449f..93efe27 100644 --- a/htsworkflow/automation/spoolwatcher.py +++ b/htsworkflow/automation/spoolwatcher.py @@ -11,6 +11,8 @@ from htsworkflow.util import mount # this uses pyinotify import pyinotify from pyinotify import EventsCodes +IN_CREATE = EventsCodes.ALL_FLAGS['IN_CREATE'] +IN_UNMOUNT = EventsCodes.ALL_FLAGS['IN_UNMOUNT'] from benderjab import rpc @@ -223,7 +225,7 @@ class SpoolWatcher(rpc.XmlRpcBot): if watchdirs is None: watchdirs = self.watchdirs - mask = EventsCodes.IN_CREATE | EventsCodes.IN_UNMOUNT + mask = IN_CREATE | IN_UNMOUNT # rec traverses the tree and adds all the directories that are there # at the start. # auto_add will add in new directories as they are created