aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/distrib/python/grpcio_tools/grpc_tools
diff options
context:
space:
mode:
authorGravatar Masood Malekghassemi <atash@google.com>2016-12-13 13:26:47 -0800
committerGravatar Masood Malekghassemi <atash@google.com>2016-12-14 11:51:40 -0800
commitf1cdf59b7f5871c7e9523c5119dd100184521cd9 (patch)
tree87496b5d7f18639c0898f24b3f77f480657d2320 /tools/distrib/python/grpcio_tools/grpc_tools
parent7b1b2cc2aad07238afc95273c783cda8426856aa (diff)
Patch overlooked strings from Python un-namespacing
Diffstat (limited to 'tools/distrib/python/grpcio_tools/grpc_tools')
-rw-r--r--tools/distrib/python/grpcio_tools/grpc_tools/command.py2
-rw-r--r--tools/distrib/python/grpcio_tools/grpc_tools/protoc.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/distrib/python/grpcio_tools/grpc_tools/command.py b/tools/distrib/python/grpcio_tools/grpc_tools/command.py
index 43ec8c2a4c..31b3331a66 100644
--- a/tools/distrib/python/grpcio_tools/grpc_tools/command.py
+++ b/tools/distrib/python/grpcio_tools/grpc_tools/command.py
@@ -49,7 +49,7 @@ def build_package_protos(package_root):
for proto_file in proto_files:
command = [
- 'grpc.tools.protoc',
+ 'grpc_tools.protoc',
'--proto_path={}'.format(inclusion_root),
'--proto_path={}'.format(well_known_protos_include),
'--python_out={}'.format(inclusion_root),
diff --git a/tools/distrib/python/grpcio_tools/grpc_tools/protoc.py b/tools/distrib/python/grpcio_tools/grpc_tools/protoc.py
index 7d5892dc4b..63fddb2f06 100644
--- a/tools/distrib/python/grpcio_tools/grpc_tools/protoc.py
+++ b/tools/distrib/python/grpcio_tools/grpc_tools/protoc.py
@@ -45,5 +45,5 @@ def main(command_arguments):
return _protoc_compiler.run_main(command_arguments)
if __name__ == '__main__':
- proto_include = pkg_resources.resource_filename('grpc.tools', '_proto')
+ proto_include = pkg_resources.resource_filename('grpc_tools', '_proto')
sys.exit(main(sys.argv + ['-I{}'.format(proto_include)]))