From: Greg Ward Date: Wed, 31 May 2000 02:17:19 +0000 (+0000) Subject: Normalize paths before writing them to a zipfile. X-Git-Tag: v2.0b1~1628 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65bc20c23e22543e13ff6d1fbdf51705a0b5aa1a;p=python Normalize paths before writing them to a zipfile. --- diff --git a/Lib/distutils/archive_util.py b/Lib/distutils/archive_util.py index 050ea41796..218450a6ba 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)