We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 254eab2 + 038fdfc commit f6bb2d5Copy full SHA for f6bb2d5
pkgman/installers/common.py
@@ -60,6 +60,17 @@ def get_python_path(version):
60
if sys.platform == "win32":
61
extension = ".exe"
62
63
+ version_string = str(version)
64
+ if sys.version_info[0] == 3 and \
65
+ sys.version_info[1] > 0:
66
+ version_string = str(sys.version_info[0]) + \
67
+ "." + str(sys.version_info[1])
68
+
69
+ # Check for the exact version executable first
70
+ path = spawn.find_executable("python" + version_string + extension)
71
+ if path is not None:
72
+ return path
73
74
path = spawn.find_executable("python" + str(version) + extension)
75
if path is not None:
76
return path
0 commit comments