Revert "Support other variables than PATH in pathvar (#3791)" (#3827)

This reverts commit f9f39c0a1c.
This commit is contained in:
Darren Schroeder
2021-07-23 09:03:28 -05:00
committed by GitHub
parent 5d7677dd07
commit 0f9e55dac6
10 changed files with 44 additions and 504 deletions

View File

@ -9,12 +9,15 @@ pub struct Outcome {
pub err: String,
}
#[cfg(windows)]
pub const NATIVE_PATH_ENV_VAR: &str = "Path";
#[cfg(not(windows))]
pub const NATIVE_PATH_ENV_VAR: &str = "PATH";
#[cfg(windows)]
pub const NATIVE_PATH_ENV_SEPARATOR: char = ';';
#[cfg(not(windows))]
pub const NATIVE_PATH_ENV_SEPARATOR: char = ':';
#[cfg(not(windows))]
pub const NATIVE_PATH_ENV_SEPARATOR: char = ';';
impl Outcome {
pub fn new(out: String, err: String) -> Outcome {