Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-14 13:19:54 -04:00
parent 95ab4fe4ce
commit a689822873
2 changed files with 4 additions and 2 deletions
-2
View File
@@ -289,8 +289,6 @@ def find_a_system_python(python):
if os.name == 'nt':
possibility = '{0}.exe'.format(possibility)
print(system_which(possibility))
version = python_version(system_which(possibility))
if version:
if python in version:
+4
View File
@@ -26,6 +26,10 @@ requests = requests.session()
def python_version(path_to_python):
print(path_to_python)
if not path_to_python:
return None
try:
TEMPLATE = 'Python {}.{}.{}'
print('{0} --version'.format(path_to_python))