Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-14 13:18:05 -04:00
parent 2509571f8f
commit 95ab4fe4ce
+3 -1
View File
@@ -28,9 +28,11 @@ def python_version(path_to_python):
print(path_to_python)
try:
TEMPLATE = 'Python {}.{}.{}'
print('{0} --version'.format(path_to_python))
c = delegator.run('{0} --version'.format(path_to_python), block=False)
c.return_code == 0
except Exception:
except Exception as e:
print(e)
return None
output = c.out.strip() or c.err.strip()