From 7c08e36ec73e114e7c4e0ce15fe161b51e25ccc3 Mon Sep 17 00:00:00 2001 From: Martin Kojtal Date: Wed, 15 Jun 2016 18:40:06 +0100 Subject: [PATCH] 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 ``` --- tools/project.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/project.py b/tools/project.py index ed16822651..e41f6c3faa 100644 --- a/tools/project.py +++ b/tools/project.py @@ -212,8 +212,10 @@ if __name__ == '__main__': # Export to selected toolchain 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: + if not zip: + zip_path = join(project_temp, "%s_%s" % (project_name, mcu)) + else: + zip_path = join(EXPORT_DIR, "%s_%s_%s.zip" % (project_name, ide, mcu)) move(tmp_path, zip_path) successes.append("%s::%s\t%s"% (mcu, ide, zip_path)) else: