Skip to main content

generate_env_file

Function generate_env_file 

Source
pub fn generate_env_file(
    python_bin: &str,
    rocm_home: &str,
    rocm_lib: &str,
    user_home: &str,
) -> String
Expand description

Generate a new .mlstack_env file from scratch.

user_home anchors the $HOME-relative paths (e.g. ~/.mlstack/lib-compat) so the file is correct for its owner even when that differs from the live process HOME.