Skip to content

Commit

Permalink
Fix RUN_THIS.py so it would be cross-platform and it would be possibl…
Browse files Browse the repository at this point in the history
…e to use it from cmd on Windows (#26017)

Fix RUN_THIS.py so it would be possible to use it from cmd on Windows
  • Loading branch information
CrafterKolyan authored Mar 12, 2024
1 parent cd43f32 commit 7ed94f8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions RUN_THIS.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 7ed94f8

Please sign in to comment.