Merge pull request #13372 from mehrdada/minor-reflection-typo-fix

Correct HEALTH_PROTO to REFLECTION_PROTO
pull/10506/merge
Mehrdad Afshari 7 years ago committed by GitHub
commit e52772451a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/python/grpcio_reflection/reflection_commands.py

@ -19,7 +19,7 @@ import shutil
import setuptools import setuptools
ROOT_DIR = os.path.abspath(os.path.dirname(os.path.abspath(__file__))) ROOT_DIR = os.path.abspath(os.path.dirname(os.path.abspath(__file__)))
HEALTH_PROTO = os.path.join( REFLECTION_PROTO = os.path.join(
ROOT_DIR, '../../proto/grpc/reflection/v1alpha/reflection.proto') ROOT_DIR, '../../proto/grpc/reflection/v1alpha/reflection.proto')
@ -36,9 +36,9 @@ class CopyProtoModules(setuptools.Command):
pass pass
def run(self): def run(self):
if os.path.isfile(HEALTH_PROTO): if os.path.isfile(REFLECTION_PROTO):
shutil.copyfile( shutil.copyfile(
HEALTH_PROTO, REFLECTION_PROTO,
os.path.join(ROOT_DIR, os.path.join(ROOT_DIR,
'grpc_reflection/v1alpha/reflection.proto')) 'grpc_reflection/v1alpha/reflection.proto'))

Loading…
Cancel
Save