Function whereami::module_path
[−]
[src]
pub fn module_path() -> Option<PathBuf>
Returns the path of the current module or None
if acquiring thereof failed.
Note: this is not the Rust mod
, but rather an OS module
(most of the time: a DLL)
Examples:
println!("This exec/DLL is at {}", module_path().unwrap().to_str().unwrap());