Skip to content

Commit

Permalink
normalize path for dothttp to work for pyinstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric05 authored Feb 25, 2024
1 parent 1d447a1 commit 93a1a92
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dothttp/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.43a8"
__version__ = "0.0.43a9"
11 changes: 7 additions & 4 deletions dothttp/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ def get_real_file_path(
current_file=__file__,
):
if os.path.exists(current_file):
tx_model_path = os.path.join(
os.path.dirname(os.path.abspath(current_file)), path
tx_model_path = os.path.normpath(
os.path.join(
os.path.dirname(os.path.abspath(current_file)),
path
)
)
else:
tx_model_path = os.path.join(
tx_model_path = os.normpath(os.path.normpath(os.path.join(
os.path.dirname(os.path.dirname(os.path.abspath(current_file))), path
)
)))
return tx_model_path


Expand Down

0 comments on commit 93a1a92

Please sign in to comment.