Skip to content

Commit 676cfbb

Browse files
authored
Merge pull request #2028 from mbedmicro/add_project_folders
Change directory generation for project files.
2 parents 2acd3bb + 2852932 commit 676cfbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
# --source is used to generate IDE files to toolchain directly in the source tree and doesn't generate zip file
150150
project_dir = options.source_dir
151151
project_name = n if n else "Unnamed_Project"
152-
project_temp = path.join(options.source_dir[0], 'projectfiles', ide)
152+
project_temp = path.join(options.source_dir[0], 'projectfiles', '%s_%s' % (ide, mcu))
153153
mkdir(project_temp)
154154
lib_symbols = []
155155
if options.macros:
@@ -213,7 +213,7 @@
213213
tmp_path, report = export(project_dir, project_name, ide, mcu, project_dir[0], project_temp, clean=clean, zip=zip, extra_symbols=lib_symbols, sources_relative=sources_relative)
214214
if report['success']:
215215
if not zip:
216-
zip_path = join(project_temp, "%s_%s" % (project_name, mcu))
216+
zip_path = join(project_temp, project_name)
217217
else:
218218
zip_path = join(EXPORT_DIR, "%s_%s_%s.zip" % (project_name, ide, mcu))
219219
move(tmp_path, zip_path)

0 commit comments

Comments
 (0)