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

Paths: Apply the executable rename in pythonw too

Fixes launching the game launcher when Rare is installed through `pip`
on Windows.

Fixes: #339
This commit is contained in:
Stelios Tsampas 2023-12-18 10:44:47 +02:00
parent 85d29372d4
commit b3bff4ef3f

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: