def _load_config(self):
# Handle legacy file location
if os.path.exists(self._legacy_dir):
print("Migrating config from legacy location")
shutil.move(self._legacy_dir, self.config_dir)
# Create the kicad bom manager folder if it doesn't already exist
if not os.path.exists(self.config_dir):
os.makedirs(self.config_dir)
self.filehistory = wx.FileHistory(8)
self.config = wx.Config("BOMsAway",
localFilename=self.config_file,
style=wx.CONFIG_USE_LOCAL_FILE)
self.filehistory.Load(self.config)
评论列表
文章目录