Consider py.exe when detecting wrong versions

Related to #1620, I feel this is a nice addition.
This commit is contained in:
Tzu-ping Chung
2018-03-09 13:52:07 +08:00
parent c229b785ad
commit 1ff79911a0
+1 -1
View File
@@ -625,7 +625,7 @@ def ensure_project(three=None, python=None, validate=True, system=False, warn=Tr
# Warn users if they are using the wrong version of Python.
if project.required_python_version:
path_to_python = which('python')
path_to_python = which('python') or which('py')
if path_to_python and project.required_python_version not in (python_version(path_to_python) or ''):
click.echo(