diff options
author | Greg Ward <gward@python.net> | 2000-05-31 02:17:19 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-05-31 02:17:19 (GMT) |
commit | 65bc20c23e22543e13ff6d1fbdf51705a0b5aa1a (patch) | |
tree | 32bbe65fedbe49ae5acbc029efb9309953670946 /Lib/distutils/archive_util.py | |
parent | 4b46ef9a4f35c50eed2e0993058be0cfe71e0b3b (diff) | |
download | cpython-65bc20c23e22543e13ff6d1fbdf51705a0b5aa1a.zip cpython-65bc20c23e22543e13ff6d1fbdf51705a0b5aa1a.tar.gz cpython-65bc20c23e22543e13ff6d1fbdf51705a0b5aa1a.tar.bz2 |
Normalize paths before writing them to a zipfile.
Diffstat (limited to 'Lib/distutils/archive_util.py')
-rw-r--r-- | Lib/distutils/archive_util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/archive_util.py b/Lib/distutils/archive_util.py index 050ea41..218450a 100644 --- a/Lib/distutils/archive_util.py +++ b/Lib/distutils/archive_util.py @@ -93,7 +93,7 @@ def make_zipfile (base_name, base_dir, verbose=0, dry_run=0): def visit (z, dirname, names): for name in names: - path = os.path.join (dirname, name) + path = os.path.normpath(os.path.join(dirname, name)) if os.path.isfile (path): z.write (path, path) |