fix build.py

This commit is contained in:
Yannik
2023-04-22 21:29:47 +02:00
parent 01cb2ad639
commit 49f517b6a4

View File

@@ -4,10 +4,11 @@ import sys
yes = {'yes', 'y', 'ye', ''}
no = {'no', 'n'}
if sys.argv[1]:
if len(sys.argv) > 1:
choice = sys.argv[1].removeprefix("-")
else:
sys.stdout.write("Do you want to open only the built project instead of the Godot Editor after building? ([y]es/[n]o): ")
sys.stdout.write(
"Do you want to open only the built project instead of the Godot Editor after building? ([y]es/[n]o): ")
choice = input().lower()
if choice in yes:
os.system("scons && cd project && godot")