From 370b8c19743952a0b5e9e8afaaa13d71cfe7de21 Mon Sep 17 00:00:00 2001 From: itzaname Date: Sat, 29 Oct 2022 10:47:36 -0400 Subject: [PATCH] Apply patch to package import --- scripts/python-gen.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/python-gen.sh b/scripts/python-gen.sh index 9440899..11519b4 100755 --- a/scripts/python-gen.sh +++ b/scripts/python-gen.sh @@ -2,4 +2,5 @@ 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 \ No newline at end of file +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' strafesnet/*.py \ No newline at end of file