Function get_executable_path

Source
pub fn get_executable_path() -> Option<PathBuf>
Expand description

Gets the path of the currently running process. If the path cannot be determined, None is returned.

Examples found in repository?
examples/example.rs (line 6)
5fn main() {
6    let path = get_executable_path();
7    match path {
8        None => println!("The process path could not be determined"),
9        Some(path) => println!("{:?}", path),
10    }
11}