pub fn module_path() -> Option<PathBuf>
Expand description
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());