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 = """