[tool] 增加scons --dist --project-path=xxxx命令 (#6713)

* [tools] 所有dist都打zip包

* 完善scons --dist/dist-ide --project-name  --project-path命令
This commit is contained in:
Man, Jianting (Meco)
2022-12-19 01:12:08 -05:00
committed by GitHub
parent 0df51b8aa9
commit 8c7e0b71ce
6 changed files with 21 additions and 59 deletions

View File

@@ -433,7 +433,6 @@ def ARMCC_Version():
if os.path.exists(path):
cmd = path
else:
print('Error: get armcc version failed. Please update the KEIL MDK installation path in rtconfig.py!')
return "0.0"
child = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
@@ -447,7 +446,8 @@ def ARMCC_Version():
return version: MDK Plus 5.24/ARM Compiler 5.06 update 5 (build 528)/armcc [4d3621]
'''
if not isinstance(stdout, str):
stdout = str(stdout, 'utf8') # Patch for Python 3
version_Product = re.search(r'Product: (.+)', stdout).group(1)
version_Product = version_Product[:-1]
version_Component = re.search(r'Component: (.*)', stdout).group(1)