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)
评论列表
文章目录