Made it working dir independent.
This commit is contained in:
parent
362ef5aef4
commit
5bc3dab10c
1 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,11 @@
|
||||||
|
|
||||||
import os
|
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): ")
|
input_debug = input("Do you want to debug the gui scripts? (Make gui scripts executable.) (y/n): ")
|
||||||
|
|
||||||
debug = input_debug == "y"
|
debug = input_debug == "y"
|
||||||
|
|
Loading…
Reference in a new issue