diff --git a/gui/raw_ui/ui_to_py.py b/gui/raw_ui/ui_to_py.py index e666ff6..ac953c1 100644 --- a/gui/raw_ui/ui_to_py.py +++ b/gui/raw_ui/ui_to_py.py @@ -2,6 +2,11 @@ import os +working_dir = os.getcwd() + +if not working_dir.split('/')[-1] == "raw_ui": # cd into the right directory if this gets executed from somewhere else + os.chdir(os.path.dirname(os.path.abspath(__file__))) + input_debug = input("Do you want to debug the gui scripts? (Make gui scripts executable.) (y/n): ") debug = input_debug == "y"