python-venv: use correct python name for which call (#44048)
This commit is contained in:
		| @@ -54,7 +54,8 @@ def bindir(self): | ||||
|     @property | ||||
|     def command(self): | ||||
|         """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: | ||||
|         return self.command( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 John W. Parent
					John W. Parent