提交 e1fdeda9 编写于 作者: G granbestiapop 提交者: Kentaro Wada

Fix not imageData property

上级 f20e7a10
......@@ -32,10 +32,9 @@ def main():
os.mkdir(out_dir)
data = json.load(open(json_file))
imageData = data.get('imageData')
if data['imageData']:
imageData = data['imageData']
else:
if not imageData:
imagePath = os.path.join(os.path.dirname(json_file), data['imagePath'])
with open(imagePath, 'rb') as f:
imageData = f.read()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册