Normalize paths before writing them to a zipfile.

This commit is contained in:
Greg Ward 2000-05-31 02:17:19 +00:00
parent 4b46ef9a4f
commit 65bc20c23e

View 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)