aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/python/helloworld/run_codegen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/python/helloworld/run_codegen.sh')
-rwxr-xr-xexamples/python/helloworld/run_codegen.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/python/helloworld/run_codegen.sh b/examples/python/helloworld/run_codegen.sh
new file mode 100755
index 0000000000..4d826c7946
--- /dev/null
+++ b/examples/python/helloworld/run_codegen.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+# 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/helloworld.proto