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.observers import Observer
|
||||||
from watchdog.events import FileSystemEventHandler
|
from watchdog.events import FileSystemEventHandler
|
||||||
|
|
||||||
import os
|
import os, sys
|
||||||
|
|
||||||
|
|
||||||
class Watcher(FileSystemEventHandler):
|
class Watcher(FileSystemEventHandler):
|
||||||
@@ -352,6 +352,10 @@ class Berry(App):
|
|||||||
|
|
||||||
self.config_handler.apply_settings()
|
self.config_handler.apply_settings()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
app = Berry("./")
|
|
||||||
|
|
||||||
|
working_path = os.getcwd() if len(sys.argv) == 1 else sys.argv[1]
|
||||||
|
app = Berry(working_path)
|
||||||
app.run()
|
app.run()
|
||||||
Reference in New Issue
Block a user