diff --git a/generate_protos.sh b/generate_protos.sh new file mode 100644 index 0000000..5287043 --- /dev/null +++ b/generate_protos.sh @@ -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