From 65bc20c23e22543e13ff6d1fbdf51705a0b5aa1a Mon Sep 17 00:00:00 2001 From: Greg Ward Date: Wed, 31 May 2000 02:17:19 +0000 Subject: Normalize paths before writing them to a zipfile. --- Lib/distutils/archive_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v0.12