pass working directory to berry if you want now
This commit is contained in:
8
main.py
8
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()
|
||||
Reference in New Issue
Block a user