on master help sign in
Use `runtime` dir when defaulting to executable location
4b6aff8Wojciech Kępka
helix-core/src/lib.rs+1−1
@@ -68,7 +68,7 @@ fn runtime_dir() -> std::path::PathBuf {
68 // fallback to location of the executable being run
68 // fallback to location of the executable being run
69 std::env::current_exe()
69 std::env::current_exe()
70 .ok()
70 .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)))
72 .unwrap()
72 .unwrap()
73}
73}
74
74