From 90359d855871582ea61107f88043ef73d9675ddf Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Wed, 5 Jun 2019 00:54:49 +0200 Subject: [PATCH] fix: grafeas can also be a top-level protocol folder (#631) --- artman/utils/protoc_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artman/utils/protoc_utils.py b/artman/utils/protoc_utils.py index 55f913bd..7895ca25 100644 --- a/artman/utils/protoc_utils.py +++ b/artman/utils/protoc_utils.py @@ -269,7 +269,7 @@ def protoc_grpc_params(proto_params, pkg_dir, toolkit_path): def find_google_dir_index(src_proto_path): - matches = list(re.finditer('(?:\\A|[/\\\\])(google)(?=\\Z|[/\\\\])', + matches = list(re.finditer('(?:\\A|[/\\\\])(google|grafeas)(?=\\Z|[/\\\\])', src_proto_path)) if len(matches) == 0: raise ValueError('src_proto_path did not contain "google" '