Merge pull request #342 from loathingKernel/next
Paths: Apply the executable rename in `pythonw` too
This commit is contained in:
commit
c068b1f183
|
@ -156,8 +156,10 @@ def get_rare_executable() -> List[str]:
|
||||||
executable.append(os.path.abspath(sys.argv[0]))
|
executable.append(os.path.abspath(sys.argv[0]))
|
||||||
|
|
||||||
if executable[0].endswith("python.exe"):
|
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")
|
executable[0] = executable[0].replace("python.exe", "pythonw.exe")
|
||||||
|
|
||||||
|
if executable[0].endswith("pythonw.exe"):
|
||||||
if executable[1].endswith("rare"):
|
if executable[1].endswith("rare"):
|
||||||
executable[1] = executable[1] + ".exe"
|
executable[1] = executable[1] + ".exe"
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue