Skip to content

Commit 7c08e36

Browse files
committed
tools/project - export report fix name
Previously it was .zip always, even when using sources. This patch fixes it:` ``` Successful exports: * K64F::uvision path\projectfiles\uvision\Unnamed_Project_K64F ```
1 parent 7e0e685 commit 7c08e36

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/project.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,10 @@
212212
# Export to selected toolchain
213213
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']:
215-
zip_path = join(EXPORT_DIR, "%s_%s_%s.zip" % (project_name, ide, mcu))
216-
if zip:
215+
if not zip:
216+
zip_path = join(project_temp, "%s_%s" % (project_name, mcu))
217+
else:
218+
zip_path = join(EXPORT_DIR, "%s_%s_%s.zip" % (project_name, ide, mcu))
217219
move(tmp_path, zip_path)
218220
successes.append("%s::%s\t%s"% (mcu, ide, zip_path))
219221
else:

0 commit comments

Comments
 (0)