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