Function rustdoc::doctest::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.