pass working directory to berry if you want now

This commit is contained in:
SpookyDervish
2025-10-31 07:39:40 +11:00
parent 084d7b4dff
commit 3ad310622a

View File

@@ -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()