Skip to content

Commit 456d88a

Browse files
committed
fix delete
1 parent 2548304 commit 456d88a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ def decompressLib():
161161
for d in paths:
162162
path = os.path.join('tmp/PyQt5/Qt', d)
163163
try:
164-
shutil.rmtree(path, ignore_errors=True)
164+
if os.path.isdir(path):
165+
shutil.rmtree(path, ignore_errors=True)
166+
else:
167+
os.unlink(path)
165168
except Exception as e:
166169
print('remove ', path, e)
167170

0 commit comments

Comments
 (0)