[][src]Function librelic::prelude::sys::exec::dir

pub fn dir() -> Result<PathBuf, FuError>

Returns the full path to the directory of the current running executable.

Examples

use fungus::prelude::*;

let dir = sys::exe().unwrap().dir().unwrap();
assert_eq!(exec::dir().unwrap(), dir);