'Watch the named file for changes'

def watch_file(self, cls, filename):

    filename = os.path.abspath(filename)
    if (self is None):
        for instance in cls.instances:
            instance.watch_file(filename)
        cls.global_extra_files.append(filename)
    else:
        self.extra_files.append(filename)
