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:
parent
85d29372d4
commit
b3bff4ef3f
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue