Function set_additional_env_var

Source
pub fn set_additional_env_var(
    additional_env_from_args: Vec<String>,
    runtime_path: &PathBuf,
    quiet: bool,
) -> HashMap<String, String>
Expand description

Set additional environment variables from command line arguments.

The function takes a list of strings as its first argument, where each string is a key-value pair separated by an ‘=’ character. The function will parse each string and add the key-value pair to the HashMap returned by this function.

If a key-value pair is malformed, the function will print a warning message and ignore the pair.

The function also adds the current working directory to the PYTHONPATH environment variable.