Skip to content

Commit 6bee31e

Browse files
committed
[exporters] make sure to clean .build and BUILD when testing uvision
1 parent 116d8df commit 6bee31e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/export/uvision/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,11 @@ def build(project_name, log_name='build_log.txt', cleanup=True):
226226
os.remove(log_name)
227227
os.remove(project_name+".uvprojx")
228228
os.remove(project_name+".uvoptx")
229+
# legacy .build directory cleaned if exists
229230
if exists('.build'):
230-
shutil.rmtree(".build")
231+
shutil.rmtree('.build')
232+
if exists('BUILD'):
233+
shutil.rmtree('BUILD')
231234

232235
# Returns 0 upon success, 1 upon a warning, and neither upon an error
233236
if ret_code != 0 and ret_code != 1:

0 commit comments

Comments
 (0)