8000 Merge pull request #16 from paulmon/win-arm32-fix-tests · paulmon/cpython@858ea51 · GitHub
[go: up one dir, main page]

Skip to content

Commit 858ea51

Browse files
authored
Merge pull request python#16 from paulmon/win-arm32-fix-tests
don't rmtree() if directory doesn't exist
2 parents abaaa92 + 48c52ce commit 858ea51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tools/winiot/sync_win_iot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,13 @@ def main():
243243
print ('source = {}'.format(source))
244244
print ('output = {}'.format(output))
245245

246-
if ns.clean:
246+
if ns.clean and output.is_dir():
247247
print ('clean output directory')
248248
shutil.rmtree(output)
249249

250250
if not output.is_dir():
251251
print ('create output directory')
252-
os.mkdir(output)
252+
os.makedirs(output)
253253

254254
assert isinstance(repo, Path)
255255
assert isinstance(source, Path)

0 commit comments

Comments
 (0)
0