add rt_studio.py version infomation
This commit is contained in:
parent
03ebd19a74
commit
9dbbae70e9
|
@ -524,14 +524,13 @@ def TargetEclipse(env, reset=False, prj_name=None):
|
|||
# generate projcfg.ini file
|
||||
if not os.path.exists('.settings/projcfg.ini'):
|
||||
# if search files with uvprojx or uvproj suffix
|
||||
file = ""
|
||||
items = os.listdir(".")
|
||||
if len(items) > 0:
|
||||
for item in items:
|
||||
if item.endswith(".uvprojx") or item.endswith(".uvproj"):
|
||||
file = os.path.abspath(item)
|
||||
break
|
||||
else:
|
||||
file = ""
|
||||
chip_name = rt_studio.get_mcu_info(file)
|
||||
if rt_studio.gen_projcfg_ini_file(chip_name, prj_name, os.path.abspath(".settings/projcfg.ini")) is False:
|
||||
print('Fail!')
|
||||
|
|
|
@ -5,6 +5,9 @@ from string import Template
|
|||
import rtconfig
|
||||
import shutil
|
||||
|
||||
# version
|
||||
MODULE_VER_NUM = 6
|
||||
|
||||
cproject_temp = """<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule moduleId="org.eclipse.cdt.core.settings">
|
||||
|
|
Loading…
Reference in New Issue