diff options
author | Bernat Gabor <bgabor8@bloomberg.net> | 2020-02-26 10:41:39 +0000 |
---|---|---|
committer | Bernat Gabor <bgabor8@bloomberg.net> | 2020-02-26 10:43:50 +0000 |
commit | 21ba7aa7ee7bd7396a223a387279f8d4bb514c72 (patch) | |
tree | 73c7875d28516d6636cfff32c0c1d13d4bf63eec /src/virtualenv/util/zipapp.py | |
parent | a48c4dd8df8b96736af8fd0cc5f3c8e2ce857917 (diff) | |
download | virtualenv-release-20.0.6.tar.gz |
fix relative zipapp paths on UNIX20.0.6release-20.0.6
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
Diffstat (limited to 'src/virtualenv/util/zipapp.py')
-rw-r--r-- | src/virtualenv/util/zipapp.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/virtualenv/util/zipapp.py b/src/virtualenv/util/zipapp.py index 698cc3e..36cee5e 100644 --- a/src/virtualenv/util/zipapp.py +++ b/src/virtualenv/util/zipapp.py @@ -29,7 +29,8 @@ def extract(full_path, dest): def _get_path_within_zip(full_path): - sub_file = str(full_path)[len(ROOT) + 1 :] + full_path = os.path.abspath(str(full_path)) + sub_file = full_path[len(ROOT) + 1 :] if IS_WIN: # paths are always UNIX separators, even on Windows, though __file__ still follows platform default sub_file = sub_file.replace(os.sep, "/") |