ha-sys-mon-agent/generate_protos.sh
2024-05-04 10:17:26 +03:00

9 lines
223 B
Bash

#!/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