Skip to content

Commit a92bf1c

Browse files
committed
Tools/project - project dir should be the list
The project dir if using just project.py shall be a list of directories.
1 parent 999f798 commit a92bf1c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/project.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,12 @@
205205

206206
# Build the project with the same directory structure of the mbed online IDE
207207
project_name = test.id
208-
project_dir = join(EXPORT_WORKSPACE, project_name)
208+
project_dir = [join(EXPORT_WORKSPACE, project_name)]
209209
project_temp = EXPORT_TMP
210-
setup_user_prj(project_dir, test.source_dir, test.dependencies)
210+
setup_user_prj(project_dir[0], test.source_dir, test.dependencies)
211211

212212
# Export to selected toolchain
213-
tmp_path, report = export(project_dir, project_name, ide, mcu, project_dir, project_temp, clean=clean, zip=zip, extra_symbols=lib_symbols, relative=sources_relative)
213+
tmp_path, report = export(project_dir, project_name, ide, mcu, project_dir[0], project_temp, clean=clean, zip=zip, extra_symbols=lib_symbols, relative=sources_relative)
214214
if report['success']:
215215
zip_path = join(EXPORT_DIR, "%s_%s_%s.zip" % (project_name, ide, mcu))
216216
if zip:

0 commit comments

Comments
 (0)