Skip to content
This repository has been archived by the owner on Aug 29, 2021. It is now read-only.

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xhlove committed Jul 31, 2021
1 parent 8e0b16d commit 195a8b5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions wvguesser/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@
# excepted_j = list(range(8))

if platform.system() == 'Windows':
MAIN_EXE = (Path(sys.argv[0]).parent / 'main.exe').resolve().as_posix()
MAIN_EXE = (Path(sys.argv[0]).parent / 'main.exe')
if MAIN_EXE.exists() is False:
MAIN_EXE = (Path('.').parent / 'main.exe')
MAIN_EXE = MAIN_EXE.resolve().as_posix()
else:
MAIN_EXE = (Path(sys.argv[0]).parent / 'main').resolve().as_posix()
MAIN_EXE = (Path(sys.argv[0]).parent / 'main')
if MAIN_EXE.exists() is False:
MAIN_EXE = (Path('.').parent / 'main')
MAIN_EXE = MAIN_EXE.resolve().as_posix()


def server_setup():
Expand Down

0 comments on commit 195a8b5

Please sign in to comment.