def run(self):
interpreter = sys.executable
if verify_requirements() is None:
print("You don't have the requirements to start Red. "
"Install them from the launcher.")
if not INTERACTIVE_MODE:
exit(1)
if self.autostart is True:
cmd = (interpreter, "launcher.py", "--start", "--auto-restart")
else:
cmd = (interpreter, "launcher.py", "--start")
try:
code = subprocess.call(cmd, creationflags=subprocess.CREATE_NEW_CONSOLE, shell=False)
except KeyboardInterrupt:
code = 0
print("Red has been terminated. Exit code: %d" % code)
评论列表
文章目录