Skip to content

Commit

Permalink
fix(python): use sys.executable for sample readmegen (#766)
Browse files Browse the repository at this point in the history
Consistently use sys.executable for sample readmegen

Co-authored-by: Tres Seaver <tseaver@palladion.com>
  • Loading branch information
busunkim96 and tseaver committed Sep 21, 2020
1 parent 9d216d2 commit d399746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synthtool/languages/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def fix_pb2_grpc_headers(*, proto_root: str = "**/*_pb2_grpc.py") -> None:

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


def _get_sample_readme_metadata(sample_dir: Path) -> dict:
Expand Down

0 comments on commit d399746

Please sign in to comment.