Use `runtime` dir when defaulting to executable location
commit4b6aff8c66d6c16d16cd80ab3ffb31776ff7bdff
authorWojciech Kępka <wojtek.kepka@protonmail.com>
dateSat 12 Jun 2021, 10:20 (5 years ago)
parent4a40e93
helix-core/src/lib.rs+1−1
@@ -68,7 +68,7 @@ fn runtime_dir() -> std::path::PathBuf {
6868 // fallback to location of the executable being run
6969 std::env::current_exe()
7070 .ok()
71− .and_then(|path| path.parent().map(|path| path.to_path_buf()))
71+ .and_then(|path| path.parent().map(|path| path.to_path_buf().join(RT_DIR)))
7272 .unwrap()
7373}
7474