mirror of
https://github.com/python/cpython.git
synced 2025-07-19 17:25:54 +00:00
Normalize paths before writing them to a zipfile.
This commit is contained in:
parent
4b46ef9a4f
commit
65bc20c23e
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ def make_zipfile (base_name, base_dir, verbose=0, dry_run=0):
|
||||||
|
|
||||||
def visit (z, dirname, names):
|
def visit (z, dirname, names):
|
||||||
for name in 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):
|
if os.path.isfile (path):
|
||||||
z.write (path, path)
|
z.write (path, path)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue