From bc5eb0561de9e19470c25c8c482b775a36fc3689 Mon Sep 17 00:00:00 2001 From: Erki Date: Sat, 4 May 2024 10:17:26 +0300 Subject: [PATCH] Add proto generation script --- generate_protos.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 generate_protos.sh 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