12 lines · 361 B · Rust
RawDownload
use std::path::PathBuf; #[cfg(all(feature = "unstable"))]pub use git_path::*; pub(crate) fn install_dir() -> std::io::Result<PathBuf> {    std::env::current_exe().and_then(|exe| {        exe.parent()            .map(ToOwned::to_owned)            .ok_or_else(|| std::io::Error::new(std::io::ErrorKind::Other, "no parent for current executable"))    })}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t