process_path 0.1.4

Gets the path of the currently executing process or dynamic library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
extern crate process_path;

use process_path::get_executable_path;

fn main() {
    let path = get_executable_path();
    match path {
        None => println!("The process path could not be determined"),
        Some(path) => println!("{:?}", path),
    }
}