Skip to content

Commit

Permalink
chore: add proto_path $GOPATH/pkg/mod
Browse files Browse the repository at this point in the history
  • Loading branch information
chamini2 committed Dec 22, 2023
1 parent 1af1d26 commit aec894f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/regen_grpc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

import ast
import os
import shutil
import subprocess
import sys
Expand Down Expand Up @@ -73,7 +74,8 @@ def regen_grpc(
sys.executable,
"-m",
"grpc_tools.protoc",
"--proto_path=.",
"-I=.",
f"-I={os.getenv('GOPATH')}/pkg/mod",
"--python_out=.",
"--grpc_python_out=.",
"--mypy_out=.",
Expand Down

0 comments on commit aec894f

Please sign in to comment.