mirror of
https://github.com/python/cpython.git
synced 2024-11-30 13:24:13 +08:00
Normalize paths before writing them to a zipfile.
This commit is contained in:
parent
4b46ef9a4f
commit
65bc20c23e
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user