Skip to content

Commit 358f20c

Browse files
committed
Fix python3.0.x binary not found
1 parent 0506f8a commit 358f20c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

every_python/utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,11 @@ def python_binary_location(builds_dir: Path, build_info: "BuildInfo") -> Path:
192192
return debug_binary
193193
return builds_dir / build_info.directory_name / "python.exe"
194194
else:
195-
return builds_dir / build_info.directory_name / "bin" / "python3"
195+
binary = builds_dir / build_info.directory_name / "bin" / "python3"
196+
fallback_binary = builds_dir / build_info.directory_name / "bin" / "python3.0"
197+
if not binary.exists() and fallback_binary.exists():
198+
return fallback_binary
199+
return binary
196200

197201

198202
@dataclass

0 commit comments

Comments
 (0)