mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-04 23:50:31 +00:00
[ty] Add PYTHONPATH to EnvVars and fix on Windows (#20490)
Co-authored-by: Micha Reiser <micha@reiser.io>
This commit is contained in:
parent
68ae9c8a15
commit
036f3616a1
5 changed files with 116 additions and 22 deletions
|
@ -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 shell’s 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";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue