[ty] Fall back to python3 found in $PATH if no environment is found by figsoda · Pull Request #22843 · astral-sh/ruff (original) (raw)

AlexWaygood

carljm

@figsoda

BurntSushi added a commit that referenced this pull request

Feb 11, 2026

@BurntSushi

BurntSushi added a commit to astral-sh/ty that referenced this pull request

Feb 11, 2026

@BurntSushi

BurntSushi added a commit that referenced this pull request

Feb 11, 2026

@BurntSushi

BurntSushi added a commit to astral-sh/ty that referenced this pull request

Feb 11, 2026

@BurntSushi

BurntSushi added a commit that referenced this pull request

Feb 11, 2026

@BurntSushi

MichaReiser added a commit that referenced this pull request

Mar 3, 2026

@MichaReiser

Follow up to #22843 that reduces the overall code and allows us to directly use which and more closely follows how we integrated other high-level APIs like glob into System.

The main change is that System now exposes a new high-level which method and we only implement it for the OsSystem because we don't care about this functionality on other Systems (some systems delegate to the inner system)

One added advantage of this is that it allows System's to override which in a way that deviates from how which works on native systems. E.g. a WASM system could hard code known executables even when it doesn't support environment variables.

KotlinIsland pushed a commit to KotlinIsland/basedpython that referenced this pull request

May 1, 2026

@BurntSushi

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})