summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authoryaxing.chen <[email protected]>2021-01-27 15:54:37 +0800
committeryaxing.chen <[email protected]>2021-01-27 15:54:37 +0800
commit9dbbae70e93ee291b9e922440d553af66724e99b (patch)
tree206bdc0259cbd0180166af1dd8fb0435b36aeeb6 /tools
parent03ebd19a743cedbd7fe3ed2937d5202a450dba48 (diff)
add rt_studio.py version infomation
Diffstat (limited to 'tools')
-rw-r--r--tools/eclipse.py3
-rw-r--r--tools/rt_studio.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/eclipse.py b/tools/eclipse.py
index c1cd3c6623..4f3cda92b8 100644
--- a/tools/eclipse.py
+++ b/tools/eclipse.py
@@ -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!')
diff --git a/tools/rt_studio.py b/tools/rt_studio.py
index c60d9fc1c9..99eca3f69b 100644
--- a/tools/rt_studio.py
+++ b/tools/rt_studio.py
@@ -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">