1use std::path::PathBuf;
2
3pub use gix_path::*;
4
5pub(crate) fn install_dir() -> std::io::Result<PathBuf> {
6 std::env::current_exe().and_then(|exe| {
7 exe.parent()
8 .map(ToOwned::to_owned)
9 .ok_or_else(|| std::io::Error::other("no parent for current executable"))
10 })
11}