Tools/project - project dir should be the list

The project dir if using just project.py shall be a list of directories.
pull/1912/head
0xc0170 2016-06-13 10:13:09 +01:00
parent 999f798de6
commit a92bf1c3b8
1 changed files with 3 additions and 3 deletions

View File

@ -205,12 +205,12 @@ if __name__ == '__main__':
# Build the project with the same directory structure of the mbed online IDE
project_name = test.id
project_dir = join(EXPORT_WORKSPACE, project_name)
project_dir = [join(EXPORT_WORKSPACE, project_name)]
project_temp = EXPORT_TMP
setup_user_prj(project_dir, test.source_dir, test.dependencies)
setup_user_prj(project_dir[0], test.source_dir, test.dependencies)
# Export to selected toolchain
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)
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)
if report['success']:
zip_path = join(EXPORT_DIR, "%s_%s_%s.zip" % (project_name, ide, mcu))
if zip: