From 61e701bb919d2ce54af891aa3290894dc2ab8043 Mon Sep 17 00:00:00 2001 From: Hassan Abouelela Date: Mon, 20 Dec 2021 13:48:41 +0400 Subject: 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 --- scripts/protoc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/protoc.py') 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) -- cgit v1.2.3