From 7ed94f8824d455cab2c712eb952312c4e8fd7c52 Mon Sep 17 00:00:00 2001 From: Nikolai Korolev Date: Tue, 12 Mar 2024 00:02:41 +0000 Subject: [PATCH] Fix RUN_THIS.py so it would be cross-platform and it would be possible to use it from cmd on Windows (#26017) Fix RUN_THIS.py so it would be possible to use it from cmd on Windows --- RUN_THIS.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/RUN_THIS.py b/RUN_THIS.py index b7a8fcaa35e..6ea9f8e707d 100755 --- a/RUN_THIS.py +++ b/RUN_THIS.py @@ -5,14 +5,9 @@ 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")