mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-10-14 12:47:22 +00:00
Merge pull request #270 from gilles-peskine-arm/make_generated_files-use_same_python
Use the same Python executable instead of `python`
This commit is contained in:
@@ -33,7 +33,7 @@ class GenerationScript:
|
|||||||
|
|
||||||
# Executable to run the script, needed for Windows
|
# Executable to run the script, needed for Windows
|
||||||
if script.suffix == ".py":
|
if script.suffix == ".py":
|
||||||
self.exe = "python"
|
self.exe = sys.executable
|
||||||
elif script.suffix == ".pl":
|
elif script.suffix == ".pl":
|
||||||
self.exe = "perl"
|
self.exe = "perl"
|
||||||
|
|
||||||
@@ -62,7 +62,7 @@ def get_generation_script_files(generation_script: str) -> List[Path]:
|
|||||||
"""
|
"""
|
||||||
files = []
|
files = []
|
||||||
if generation_script.endswith(".py"):
|
if generation_script.endswith(".py"):
|
||||||
cmd = ["python"]
|
cmd = [sys.executable]
|
||||||
elif generation_script.endswith(".pl"):
|
elif generation_script.endswith(".pl"):
|
||||||
cmd = ["perl"]
|
cmd = ["perl"]
|
||||||
cmd += [generation_script, "--list"]
|
cmd += [generation_script, "--list"]
|
||||||
|
|||||||
Reference in New Issue
Block a user