rustdoc::doctest

Function make_maybe_absolute_path

Source
fn make_maybe_absolute_path(path: PathBuf) -> PathBuf
Expand description

Converts a path intended to use as a command to absolute if it is relative, and not a single component.

This is needed to deal with relative paths interacting with Command::current_dir in a platform-specific way.