Crate whereami [−] [src]
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 |
| module_path |
Returns the path of the current module or |