runner.py 文件源码

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

项目:ufolint 作者: source-foundry 项目源码 文件源码
def _validate_read_load_glyphsdirs_layercontents_plist(self):
        layercontents_plist_path = os.path.join(self.ufopath, 'layercontents.plist')
        res = Result(layercontents_plist_path)
        ss = StdStreamer(layercontents_plist_path)
        try:
            # loads as [ ['layername1', 'glyphsdir1'], ['layername2', 'glyphsdir2'] ]
            self.ufo_glyphs_dir_list = load(layercontents_plist_path)
            res.test_failed = False
            ss.stream_result(res)
        except Exception as e:
            res.test_failed = True
            res.exit_failure = True
            res.test_long_stdstream_string = "Failed to read " + layercontents_plist_path + ". Error: " + str(e)
            ss.stream_result(res)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号