windows debugging

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-14 13:16:37 -04:00
parent faf9213dcf
commit 2509571f8f
2 changed files with 2 additions and 2 deletions
+2
View File
@@ -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:
-2
View File
@@ -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