Skip to content

Commit

Permalink
fix: python protoc postprocessing script needs to account for import …
Browse files Browse the repository at this point in the history
…statements in pb2_grpc.py files too
  • Loading branch information
anitarua committed Nov 14, 2024
1 parent 6e42355 commit 1fef7bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/run-protoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ do
# will work when installed, eg:
# `import cacheclient_pb2` -> `from . import cacheclient_pb2`
sed -i.old "s/^\(import $pb2_module_name as \)/from . \1/g" $src_path/*_pb2.py
sed -i.old "s/^\(import $pb2_module_name as \)/from . \1/g" $src_path/*_pb2_grpc.py
done

rm $src_path/*.old
Expand Down

0 comments on commit 1fef7bf

Please sign in to comment.