aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/protoc.py
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-12-20 13:48:41 +0400
committerGravatar Hassan Abouelela <[email protected]>2021-12-20 13:52:06 +0400
commit61e701bb919d2ce54af891aa3290894dc2ab8043 (patch)
treeded148434aaaa0e94f59bc22a8b651005eabbc83 /scripts/protoc.py
parentBump & Lock Protobuf to 3.19 (diff)
Rename Generated ProtoBuf Config
Remove the rename step from the protobuf generation script to get around a bug causing failures in the test suite. Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'scripts/protoc.py')
-rwxr-xr-xscripts/protoc.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/protoc.py b/scripts/protoc.py
index 09429d3..1b28334 100755
--- a/scripts/protoc.py
+++ b/scripts/protoc.py
@@ -50,9 +50,8 @@ def main() -> None:
file.write(response.read())
compile_proto(file_path)
- # Remove the _pb suffix from the generated Python file.
if generated_py := next(SRC_DIR.glob(f"{FILE_NAME}_pb*.py"), None):
- generated_py.rename(generated_py.with_stem(FILE_NAME))
+ print(f"Build output: {generated_py.absolute()}.")
else:
print(f"Could not find the generated Python file in {SRC_DIR}.", file=sys.stderr)
sys.exit(1)