protobufs/scripts/python-gen.sh
itzaname 4d9280bea2
All checks were successful
continuous-integration/drone/push Build is passing
Apply patch to package import
2022-10-29 10:48:36 -04:00

6 lines
259 B
Bash
Executable File

#!/bin/bash
mkdir -p strafesnet
cp *.proto strafesnet/
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