We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dea671 commit 998111dCopy full SHA for 998111d
tools/project.py
@@ -6,6 +6,7 @@
6
ROOT = abspath(join(dirname(__file__), ".."))
7
sys.path.insert(0, ROOT)
8
9
+from subprocess import Popen
10
from shutil import move, rmtree
11
from argparse import ArgumentParser
12
from os.path import normpath, realpath
@@ -199,8 +200,7 @@ def main():
199
200
201
# Clean Export Directory
202
if options.clean:
- if exists(EXPORT_DIR):
203
- rmtree(EXPORT_DIR)
+ Popen(["git", "clean", "-fe", "mbed-os"]).wait()
204
205
for mcu in options.mcu:
206
zip_proj = not bool(options.source_dir)
0 commit comments