pub fn normalize_mlstack_env(
user_home: &Path,
python_bin: &str,
rocm_path: &Path,
) -> Result<EnvUpdateResult>Expand description
Normalize the .mlstack_env file in the user’s home directory.
Ensures that the file contains all required environment variables with correct values. The operation is idempotent: running it twice produces the same result as running it once.
Required variables set by this function:
MLSTACK_PYTHON_BIN— path to the resolved Python binaryROCM_PATH— path to ROCm installationPYTHONPATH— includes ROCm lib directoryPATH— includes ROCm bin directoriesLD_LIBRARY_PATH— includes ROCm lib directories