Kaydet (Commit) 65bc20c2 authored tarafından Greg Ward's avatar Greg Ward

Normalize paths before writing them to a zipfile.

üst 4b46ef9a
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment