提交 da62ec0f 编写于 作者: A Anon-Artist 提交者: Liu Jiaming

Update gen_proto_file.py

上级 38265098
......@@ -109,7 +109,7 @@ def gen_proto_file(config_file, work_dir):
if not os.path.exists(work_dir):
os.makedirs(work_dir)
with open(config_file, 'r') as fp:
content = yaml.load(fp)
content = yaml.safe_load(fp)
protocols = content["protocols"]
car_type = content["car_type"]
with open("%s/%s.proto" % (work_dir, car_type.lower()), 'w') as pb_fp:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册