protobufs/scripts/python-gen.sh

6 lines
259 B
Bash
Raw Normal View History

2022-07-17 06:34:29 +00:00
#!/bin/bash
2022-07-23 06:16:58 +00:00
mkdir -p strafesnet
cp *.proto strafesnet/
2022-10-29 14:47:36 +00:00
python3 -m grpc_tools.protoc -I./strafesnet --python_out=./python-grpc/strafesnet --grpc_python_out=./python-grpc/strafesnet *.proto
sed -i 's/^\(import.*pb2\)/from . \1/g' ./python-grpc/strafesnet/*.py