aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/python/route_guide/run_codegen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/python/route_guide/run_codegen.sh')
-rwxr-xr-xexamples/python/route_guide/run_codegen.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/python/route_guide/run_codegen.sh b/examples/python/route_guide/run_codegen.sh
index d9d56c2d7a..a377a1ab40 100755
--- a/examples/python/route_guide/run_codegen.sh
+++ b/examples/python/route_guide/run_codegen.sh
@@ -29,4 +29,4 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Runs the protoc with gRPC plugin to generate protocol messages and gRPC stubs.
-protoc -I ../../protos --python_out=. --grpc_out=. --plugin=protoc-gen-grpc=`which grpc_python_plugin` ../../protos/route_guide.proto
+python -m grpc.tools.protoc -I../../protos --python_out=. --grpc_python_out=. ../../protos/route_guide.proto