[update] windows tools
This commit is contained in:
parent
9dc4ca0d31
commit
bcdfa35f86
|
@ -40,9 +40,14 @@ def update_all_project_files(root_path):
|
||||||
projects = os.listdir(root_path)
|
projects = os.listdir(root_path)
|
||||||
# is a project path?
|
# is a project path?
|
||||||
if "SConscript" in projects:
|
if "SConscript" in projects:
|
||||||
print('new bsp path {}'.format(root_path))
|
|
||||||
try:
|
try:
|
||||||
os.system('scons --pyconfig-silent -C {0}'.format(root_path)) # update rtconfig.h and .config
|
if "win32" in sys.platform:
|
||||||
|
retval = os.getcwd()
|
||||||
|
os.chdir(root_path)
|
||||||
|
os.system("menuconfig --silent")
|
||||||
|
os.chdir(retval)
|
||||||
|
else:
|
||||||
|
os.system('scons --pyconfig-silent -C {0}'.format(root_path)) # update rtconfig.h and .config
|
||||||
update_project_file(root_path)
|
update_project_file(root_path)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("error message: {}".format(e))
|
print("error message: {}".format(e))
|
||||||
|
|
Loading…
Reference in New Issue