Function exe_dir

Source
pub fn exe_dir() -> &'static Path
Expand description

Get the executable’s directory.

This function provides access to the cached executable directory that AppPath uses. Useful for advanced use cases where you need the directory path directly.

§Panics

Panics if the executable location cannot be determined (same conditions as AppPath).

§Examples

use app_path::exe_dir;

println!("Executable directory: {}", exe_dir().display());