bomsaway.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:Boms-Away 作者: Jeff-Ciesielski 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号