commit | 65bc20c23e22543e13ff6d1fbdf51705a0b5aa1a | [log] [tgz] |
---|---|---|
author | Greg Ward <gward@python.net> | Wed May 31 02:17:19 2000 +0000 |
committer | Greg Ward <gward@python.net> | Wed May 31 02:17:19 2000 +0000 |
tree | 32bbe65fedbe49ae5acbc029efb9309953670946 | |
parent | 4b46ef9a4f35c50eed2e0993058be0cfe71e0b3b [diff] |
Normalize paths before writing them to a zipfile.
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 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)