Skip to content

Commit

Permalink
Fix pypa#1949
Browse files Browse the repository at this point in the history
  • Loading branch information
petamas committed Jul 20, 2023
1 parent 2fde5c4 commit 4f615a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/virtualenv/util/zipapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def extract(full_path, dest):


def _get_path_within_zip(full_path):
full_path = os.path.abspath(str(full_path))
full_path = os.path.realpath(os.path.abspath(str(full_path)))
prefix = ROOT + os.sep
assert full_path.startswith(prefix), f"full_path={full_path} should start with prefix={prefix}"
sub_file = full_path[len(prefix) :]
Expand Down

0 comments on commit 4f615a9

Please sign in to comment.