Add proto generation script
This commit is contained in:
parent
9e63608d03
commit
bc5eb0561d
8
generate_protos.sh
Normal file
8
generate_protos.sh
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ "$VIRTUAL_ENV" == "" ]]
|
||||||
|
then
|
||||||
|
source ./.venv/bin/activate
|
||||||
|
fi
|
||||||
|
|
||||||
|
python -m grpc_tools.protoc -I./api/protos --python_out=./api --pyi_out=./api --grpc_python_out=./api ./api/protos/sys-mon-agent-api.proto
|
||||||
Loading…
x
Reference in New Issue
Block a user