pythonpathrustenvironment-variables

What is the Rust equivalent of Python os.pathsep?


Python has:

os.pathsep: The character conventionally used by the operating system to separate search path components (as in PATH), such as ':' for POSIX or ';' for Windows. Also available via os.path.

Is there a similar os-specific definition in Rust?


Solution

  • There doesn't seem to be a constant for this, but Rust does provide std:::env::split_paths and std::env::join_paths.