aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/python
diff options
context:
space:
mode:
authorGravatar Ken Payson <kpayson@google.com>2016-06-30 11:54:50 -0700
committerGravatar Ken Payson <kpayson@google.com>2016-06-30 11:54:50 -0700
commit5c88bc660cb1d5b3569ed85ec9eed30d10257470 (patch)
tree3069bcc079e3840279685cf0ca861fd5b30ae37a /examples/python
parentb0c246e27cf4f3a5d2c1e35105b57a73e01ce02d (diff)
Updated example codegen to use grpcio-tools
Diffstat (limited to 'examples/python')
-rwxr-xr-xexamples/python/helloworld/run_codegen.sh2
-rwxr-xr-xexamples/python/route_guide/run_codegen.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/python/helloworld/run_codegen.sh b/examples/python/helloworld/run_codegen.sh
index 42b58e5021..34224e5c41 100755
--- a/examples/python/helloworld/run_codegen.sh
+++ b/examples/python/helloworld/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/helloworld.proto
+python -m grpc.tools.protoc -I../../protos --python_out=. --grpc_python_out=. ../../protos/helloworld.proto
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