diff --git a/main.py b/main.py index aa6a44d..5c326c9 100644 --- a/main.py +++ b/main.py @@ -17,7 +17,7 @@ from directory_tree_custom import CustomDirectoryTree from watchdog.observers import Observer from watchdog.events import FileSystemEventHandler -import os +import os, sys class Watcher(FileSystemEventHandler): @@ -352,6 +352,10 @@ class Berry(App): self.config_handler.apply_settings() + if __name__ == "__main__": - app = Berry("./") + + + working_path = os.getcwd() if len(sys.argv) == 1 else sys.argv[1] + app = Berry(working_path) app.run() \ No newline at end of file