Skip to content

Commit

Permalink
Merge pull request #342 from loathingKernel/next
Browse files Browse the repository at this point in the history
Paths: Apply the executable rename in `pythonw` too
  • Loading branch information
loathingKernel authored Dec 18, 2023
2 parents 2803319 + b3bff4e commit c068b1f
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 c068b1f

Please sign in to comment.