def post_action(self):
mbed_tools_path = self.get_tools_dir()
if not mbed_tools_path and (self.is_classic or os.path.exists(os.path.join(self.path, Cfg.file))):
self.add_tools(os.path.join(self.path, '.temp'))
mbed_tools_path = self.get_tools_dir()
if not mbed_tools_path:
warning("Cannot find the mbed tools directory in \"%s\"" % self.path)
return False
if (not os.path.isfile(os.path.join(self.path, 'mbed_settings.py')) and
os.path.isfile(os.path.join(mbed_tools_path, 'default_settings.py'))):
shutil.copy(os.path.join(mbed_tools_path, 'default_settings.py'), os.path.join(self.path, 'mbed_settings.py'))
self.check_requirements(True)
评论列表
文章目录