We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d61514 commit 0fc5f25Copy full SHA for 0fc5f25
tools/targets/rt_studio.py
@@ -328,16 +328,18 @@ def gen_cproject_file(output_file_path):
328
return False
329
330
331
-def gen_project_file(output_file_path):
+def gen_project_file(output_file_path, project_name):
332
try:
333
- w_str = project_temp
+ w_str = project_temp.replace('__project_name_flag__', project_name)
334
+
335
dir_name = os.path.dirname(output_file_path)
336
if not os.path.exists(dir_name):
337
os.makedirs(dir_name)
338
with open(output_file_path, 'w') as f:
339
f.write(w_str)
340
return True
341
except Exception as e:
342
+ print(e)
343
344
345
0 commit comments