1
0
Fork 0
mirror of synced 2024-05-18 19:42:54 +12:00

Merge pull request #342 from loathingKernel/next

Paths: Apply the executable rename in `pythonw` too
This commit is contained in:
Stelios Tsampas 2023-12-18 10:55:26 +02:00 committed by GitHub
commit c068b1f183
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,8 +156,10 @@ def get_rare_executable() -> List[str]:
executable.append(os.path.abspath(sys.argv[0]))
if executable[0].endswith("python.exe"):
# be sure to start consoleless then
# be sure to start console-less then
executable[0] = executable[0].replace("python.exe", "pythonw.exe")
if executable[0].endswith("pythonw.exe"):
if executable[1].endswith("rare"):
executable[1] = executable[1] + ".exe"
else: