Skip to content

Commit 069619f

Browse files
committed
Use file.filename from zipinfo object
1 parent 7d5588b commit 069619f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def setupPyWin32(zf):
109109
]
110110
for file in zf.filelist:
111111
if file.filename in files:
112-
filename = os.path.basename(file)
112+
filename = os.path.basename(file.filename)
113113
with open("Lib/win32/" + filename, "wb+") as f:
114114
with zf.open(file) as f2:
115115
shutil.copyfileobj(f2, f)

0 commit comments

Comments
 (0)