pub fn run_dir_from_env() -> PathBuf {
    match env::var(STATION_RUN_DIR_ENV_VAR) {
        Ok(value) => {
            if value.len() > 0 {
                PathBuf::from(&value)
            } else {
                default_run_directory()
            }
        }
        Err(_) => default_run_directory(),
    }
}
/// Get the station run directory from the environment.
///
/// If the `STATION_RUN_DIR` variable is set, use it to set the station run directory, else
/// `~/.station` is the station root directory. The station run directory determines paths to
/// configs, logs, and unix sockets.
Get the station run directory from the environment.
If the `STATION_RUN_DIR` variable is set, use it to set the station run directory, else
`~/.station` is the station root directory. The station run directory determines paths to
configs, logs, and unix sockets.
Get the station run directory from the environment . If the ` STATION_RUN_DIR ` variable is set use it to set the station run directory else ` ~ / . station ` is the station root directory . The station run directory determines paths to configs logs and unix sockets .
pub fn run_dir_from_env() -> PathBuf {
    match env::var(STATION_RUN_DIR_ENV_VAR) {
        Ok(value) => {
            if value.len() > 0 {
                PathBuf::from(&value)
            } else {
                default_run_directory()
            }
        }
        Err(_) => default_run_directory(),
    }
}
pub fn run_dir_from_env ( ) -> PathBuf { match env :: var ( STATION_RUN_DIR_ENV_VAR ) { Ok ( value ) => { if value . len ( ) > 0 { PathBuf :: from ( & value ) } else { default_run_directory ( ) } } Err ( _ ) => default_run_directory ( ) , } }
Get the station run directory from the environment.
Get the station run directory from the environment .