Crate whereami

Source
Expand description

whereami for Rust.

Used for checking where the current executable/DLL is.

§Examples:

println!("This executable is at {}", whereami::executable_path().unwrap().to_str().unwrap());
println!("This exec/DLL is at {}", whereami::module_path().unwrap().to_str().unwrap());

Functions§

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