[ty] Add PYTHONPATH to EnvVars and fix on Windows (#20490)

Co-authored-by: Micha Reiser <micha@reiser.io>
This commit is contained in:
Manuel Mendez 2025-09-23 04:27:05 -04:00 committed by GitHub
parent 68ae9c8a15
commit 036f3616a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 116 additions and 22 deletions

View file

@ -42,6 +42,12 @@ impl EnvVars {
/// Used to detect an activated virtual environment.
pub const VIRTUAL_ENV: &'static str = "VIRTUAL_ENV";
/// Adds additional directories to ty's search paths.
/// The format is the same as the shells PATH:
/// one or more directory pathnames separated by os appropriate pathsep
/// (e.g. colons on Unix or semicolons on Windows).
pub const PYTHONPATH: &'static str = "PYTHONPATH";
/// Used to determine if an active Conda environment is the base environment or not.
pub const CONDA_DEFAULT_ENV: &'static str = "CONDA_DEFAULT_ENV";