Function whereami::executable_path [] [src]

pub fn executable_path() -> Option<PathBuf>

Returns the path of the current executable or None if acquiring thereof failed.

Examples:

println!("This executable is at {}", executable_path().unwrap().to_str().unwrap());