Skip to content

Commit d399746

Browse files
busunkim96tseaver
andauthored
fix(python): use sys.executable for sample readmegen (#766)
Consistently use sys.executable for sample readmegen Co-authored-by: Tres Seaver <[email protected]>
1 parent 9d216d2 commit d399746

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

synthtool/languages/python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def fix_pb2_grpc_headers(*, proto_root: str = "**/*_pb2_grpc.py") -> None:
7070

7171
def _get_help(filename: str) -> str:
7272
"""Function used by sample readmegen"""
73-
return shell.run(["python", filename, "--help"]).stdout
73+
return shell.run([sys.executable, filename, "--help"]).stdout
7474

7575

7676
def _get_sample_readme_metadata(sample_dir: Path) -> dict:

0 commit comments

Comments
 (0)