Show More
@@ -142,11 +142,9 b' import platform; print("%s:%s" % (platfo' | |||
|
142 | 142 | def python_exe_info(python_exe: pathlib.Path): |
|
143 | 143 | """Obtain information about a Python executable.""" |
|
144 | 144 | |
|
145 | res = subprocess.run( | |
|
146 | [str(python_exe), '-c', PRINT_PYTHON_INFO], | |
|
147 | capture_output=True, check=True) | |
|
145 | res = subprocess.check_output([str(python_exe), '-c', PRINT_PYTHON_INFO]) | |
|
148 | 146 | |
|
149 |
arch, version = res |
|
|
147 | arch, version = res.decode('utf-8').split(':') | |
|
150 | 148 | |
|
151 | 149 | version = distutils.version.LooseVersion(version) |
|
152 | 150 |
General Comments 0
You need to be logged in to leave comments.
Login now