<s> import pyinotify <EOL> class ProcessTransientFile ( pyinotify . ProcessEvent ) : <EOL> def process_IN_MODIFY ( self , event ) : <EOL> print '<STR_LIT:\t>' , event . pathname , '<STR_LIT>' <EOL> def process_default ( self , event ) : <EOL> print '<STR_LIT>' , event . maskname <EOL> wm = pyinotify . WatchManager ( ) <EOL> notifier = pyinotify . Notifier ( wm ) <EOL> wm . watch_transient_file ( '<STR_LIT>' , pyinotify . IN_MODIFY , ProcessTransientFile ) <EOL> notifier . loop ( ) </s>
