From 9dbbae70e93ee291b9e922440d553af66724e99b Mon Sep 17 00:00:00 2001 From: "yaxing.chen" Date: Wed, 27 Jan 2021 15:54:37 +0800 Subject: [PATCH] add rt_studio.py version infomation --- tools/eclipse.py | 3 +-- tools/rt_studio.py | 3 +++ 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 = """