python-venv: use correct python name for which call (#44048)
This commit is contained in:
parent
0a353abc42
commit
b35ec605fe
1 changed files with 2 additions and 1 deletions
|
@ -54,7 +54,8 @@ def bindir(self):
|
||||||
@property
|
@property
|
||||||
def command(self):
|
def command(self):
|
||||||
"""Returns a python Executable instance"""
|
"""Returns a python Executable instance"""
|
||||||
return which("python3", path=self.bindir)
|
python_name = "python" if self.spec.satisfies("platform=windows") else "python3"
|
||||||
|
return which(python_name, path=self.bindir)
|
||||||
|
|
||||||
def _get_path(self, name) -> str:
|
def _get_path(self, name) -> str:
|
||||||
return self.command(
|
return self.command(
|
||||||
|
|
Loading…
Reference in a new issue