From 3ad310622ab7b048da4987009d325fcf3952f45a Mon Sep 17 00:00:00 2001 From: SpookyDervish <78246495+SpookyDervish@users.noreply.github.com> Date: Fri, 31 Oct 2025 07:39:40 +1100 Subject: [PATCH] pass working directory to berry if you want now --- main.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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