Skip to content

Commit

Permalink
Stop removing _internal from path on Windows pyinstaller builds
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rn3j committed Dec 22, 2024
1 parent efcf221 commit d056f0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tauon/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ def transfer_args_and_exit() -> None:
pyinstaller_mode = False
if hasattr(sys, "_MEIPASS"):
pyinstaller_mode = True
if str(install_directory).endswith("\\_internal"):
if install_directory.name.endswith("_internal"):
pyinstaller_mode = True
install_directory = install_directory.parent
# install_directory = install_directory.parent

if pyinstaller_mode:
os.environ["PATH"] += ":" + sys._MEIPASS
Expand Down

0 comments on commit d056f0f

Please sign in to comment.