mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-28 18:10:21 +00:00
[tool] 增加scons --dist --project-path=xxxx命令 (#6713)
* [tools] 所有dist都打zip包 * 完善scons --dist/dist-ide --project-name --project-path命令
This commit is contained in:
committed by
GitHub
parent
0df51b8aa9
commit
8c7e0b71ce
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user