fix build.py
This commit is contained in:
15
build.py
15
build.py
@@ -1,17 +1,18 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
yes = {'yes','y', 'ye', ''}
|
yes = {'yes', 'y', 'ye', ''}
|
||||||
no = {'no','n'}
|
no = {'no', 'n'}
|
||||||
|
|
||||||
if sys.argv[1]:
|
if len(sys.argv) > 1:
|
||||||
choice = sys.argv[1].removeprefix("-")
|
choice = sys.argv[1].removeprefix("-")
|
||||||
else:
|
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()
|
choice = input().lower()
|
||||||
if choice in yes:
|
if choice in yes:
|
||||||
os.system("scons && cd project && godot")
|
os.system("scons && cd project && godot")
|
||||||
elif choice in no:
|
elif choice in no:
|
||||||
os.system("scons && godot project\project.godot")
|
os.system("scons && godot project\project.godot")
|
||||||
else:
|
else:
|
||||||
sys.stdout.write("Please respond with 'yes' or 'no'")
|
sys.stdout.write("Please respond with 'yes' or 'no'")
|
||||||
|
Reference in New Issue
Block a user