Skip to content

Commit d636bd2

Browse files
committed
[tools] remove temp dir before making headers
1 parent f53168b commit d636bd2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/make-nw-headers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ def update_uvh(tmp_dir, header_files):
4949

5050
#make tmpdir
5151
if os.path.exists(tmp_dir):
52-
pass
53-
else:
54-
os.mkdir(tmp_dir)
52+
shutil.rmtree(tmp_dir)
53+
54+
os.mkdir(tmp_dir)
5555

5656
# prepare the files to compress
5757
print 'Begin copy file'

0 commit comments

Comments
 (0)