Skip to content

Commit

Permalink
Paths: Apply the executable rename in pythonw too
Browse files Browse the repository at this point in the history
Fixes launching the game launcher when Rare is installed through `pip`
on Windows.

Fixes: #339
  • Loading branch information
loathingKernel committed Dec 18, 2023
1 parent 85d2937 commit b3bff4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rare/utils/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b3bff4e

Please sign in to comment.