]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix RUN_THIS.py so it would be cross-platform and it would be possible to use it...
authorNikolai Korolev <CrafterKolyan@mail.ru>
Tue, 12 Mar 2024 00:02:41 +0000 (00:02 +0000)
committerGitHub <noreply@github.com>
Tue, 12 Mar 2024 00:02:41 +0000 (01:02 +0100)
Fix RUN_THIS.py so it would be possible to use it from cmd on Windows

RUN_THIS.py

index b7a8fcaa35ede42f53b139ae8a872d31d2c9a357..6ea9f8e707d3578f80a60167aa8a15df6afba86b 100755 (executable)
@@ -5,14 +5,9 @@ from __future__ import print_function
 import sys
 import subprocess
 
-IS_WINDOWS = sys.platform in ("win32", "cygwin")
-
 version = sys.version_info
 if version.major < 3 or (version.major == 3 and version.minor < 5):
     print("ERROR: You need at least Python 3.5 to build SS14.")
     sys.exit(1)
 
-if IS_WINDOWS:
-    subprocess.run(["py", "-3", "git_helper.py"], cwd="BuildChecker")
-else:
-    subprocess.run(["python3", "git_helper.py"], cwd="BuildChecker")
+subprocess.run([sys.executable, "git_helper.py"], cwd="BuildChecker")