Skip to content

Commit

Permalink
Fixed issue where files were added to ZIP archives without folder hie…
Browse files Browse the repository at this point in the history
…rarchy
  • Loading branch information
fireundubh committed May 7, 2022
1 parent 6c2fd5d commit 3975e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyro/ProjectBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _get_path(path: str, *, relative_root_path: str, fallback_path: Union[str, l
"""
if path or startswith(path, (os.curdir, os.pardir)):
path = os.path.expanduser(os.path.expandvars(path))
return path if os.path.isabs(path) else os.path.normpath(os.path.join(relative_root_path, path))
return os.path.normpath(path) if os.path.isabs(path) else os.path.normpath(os.path.join(relative_root_path, path))
if isinstance(fallback_path, list):
return os.path.abspath(os.path.join(*fallback_path))
return fallback_path
Expand Down

0 comments on commit 3975e39

Please sign in to comment.