Made it working dir independent.

This commit is contained in:
The Wobbler 2024-11-19 18:53:22 +01:00
parent 362ef5aef4
commit 5bc3dab10c

View file

@ -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"