models/watcher.py
def _watch_file(self, file_name, module):
        "Add a watch for a specific file, and map said file to a module name"

        file_name = os.path.realpath(file_name)
        self.mod_map[file_name] = module
        self.wm.add_watch(file_name, pyinotify.EventsCodes.IN_MODIFY)
        #print 'Watching', file_name
Add a watch for a specific file, and map said file to a module name
Add a watch for a specific file, and map said file to a module name
Add a watch for a specific file and map said file to a module name
def _watch_file(self, file_name, module):
        file_name = os.path.realpath(file_name)
        self.mod_map[file_name] = module
        self.wm.add_watch(file_name, pyinotify.EventsCodes.IN_MODIFY)
def _watch_file ( self , file_name , module ) : file_name = os . path . realpath ( file_name ) self . mod_map [ file_name ] = module self . wm . add_watch ( file_name , pyinotify . EventsCodes . IN_MODIFY )
Add a watch for a specific file, and map said file to a module name
Add a watch for a specific file and map said file to a module name
"Add a watch for a specific file, and map said file to a module name" #print 'Watching', file_name
self
file_name
module