def __init__(self, path, factory, kwargs): self.path = os.path.abspath(path) self.factory = factory self.kwargs = kwargs self.components = [] self.data = [] if auto_refresh(): self.watcher = FileWatcher(path, self.reload) else: self.watcher = None
def __init__(self, path, factory, kwargs): self.path = os.path.abspath(path) self.factory = factory self.kwargs = kwargs self.components = [] self.data = [] if auto_refresh(): self.watcher = FileWatcher(path, self.reload) else: self.watcher = None