From dca761c5eb4e01f2dc034d39a290fc504a3cbff7 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Fri, 24 Sep 2010 22:34:17 +0000 Subject: [PATCH] Adjust spoolwatchers use of inotify to correspond to pyinotify 0.8.9 --- htsworkflow/automation/spoolwatcher.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.30.2