提交 eca10934 编写于 作者: A Aaron Xiao 提交者: Jiangtao Hu

Scripts: Generate cyber python proto to py_proto.

上级 20980133
......@@ -256,15 +256,10 @@ function build_py_proto() {
fi
mkdir py_proto
PROTOC='./bazel-out/host/bin/external/com_google_protobuf/protoc'
find modules/ -name "*.proto" \
find modules/ cyber/ -name "*.proto" \
| grep -v node_modules \
| xargs ${PROTOC} --python_out=py_proto
find py_proto/* -type d -exec touch "{}/__init__.py" \;
# We need to put cyber/proto along with other cyber/ modules to avoid
# namespace conflict.
find cyber/proto/ -name "*.proto" | xargs ${PROTOC} --python_out=cyber/python
find cyber/python/cyber/proto -type d -exec touch "{}/__init__.py" \;
}
function check() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册