mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
@@ -289,6 +289,8 @@ 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:
|
||||
|
||||
@@ -29,8 +29,6 @@ def python_version(path_to_python):
|
||||
try:
|
||||
TEMPLATE = 'Python {}.{}.{}'
|
||||
c = delegator.run('{0} --version'.format(path_to_python), block=False)
|
||||
print('{0} --version'.format(path_to_python))
|
||||
print(c)
|
||||
c.return_code == 0
|
||||
except Exception:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user