]> granicus.if.org Git - python/commitdiff
Normalize paths before writing them to a zipfile.
authorGreg Ward <gward@python.net>
Wed, 31 May 2000 02:17:19 +0000 (02:17 +0000)
committerGreg Ward <gward@python.net>
Wed, 31 May 2000 02:17:19 +0000 (02:17 +0000)
Lib/distutils/archive_util.py

index 050ea41796a9edcd445cd3042390fdc45dfb5b3d..218450a6ba8ae6a76470de634a7896f30eb3614f 100644 (file)
@@ -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)