From 4d9280bea2548e8ca8a99dfb658fdc9ee8c2d6f5 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..a2a165a 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' ./python-grpc/strafesnet/*.py \ No newline at end of file