Skip to content

Commit

Permalink
fix: edit generated python code st relative import works
Browse files Browse the repository at this point in the history
The issue dates back to protocolbuffers/protobuf#1491
  • Loading branch information
t0t07 committed Nov 23, 2021
1 parent 56ccac0 commit 31eb06f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ codegen:
--python_out=oomd/codegen \
--grpc-python_out=oomd/codegen \
oomd/oomd.proto
sed -i '' "s|import status_pb2|from . import status_pb2|g" oomd/codegen/oomd_pb2.py
sed -i '' "s|import oomd_pb2|from . import oomd_pb2|g" oomd/codegen/oomd_pb2_grpc.py

.PHONY: build
build: featctl
Expand Down

0 comments on commit 31eb06f

Please sign in to comment.