aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/protoc.py
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-12-20 10:53:13 +0000
committerGravatar GitHub <[email protected]>2021-12-20 10:53:13 +0000
commit854d0c520f0a01265f2d7a665a702f5316eef9b3 (patch)
treeded148434aaaa0e94f59bc22a8b651005eabbc83 /scripts/protoc.py
parentMerge pull request #123 from Akarys42/patch-1 (diff)
parentRename Generated ProtoBuf Config (diff)
Merge pull request #119 from python-discord/fix-tests-protobuf
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)