Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion every_python/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,11 @@ def python_binary_location(builds_dir: Path, build_info: "BuildInfo") -> Path:
return debug_binary
return builds_dir / build_info.directory_name / "python.exe"
else:
return builds_dir / build_info.directory_name / "bin" / "python3"
binary = builds_dir / build_info.directory_name / "bin" / "python3"
fallback_binary = builds_dir / build_info.directory_name / "bin" / "python3.0"
if not binary.exists() and fallback_binary.exists():
return fallback_binary
return binary


@dataclass
Expand Down