aboutsummaryrefslogtreecommitdiff
path: root/helix-core
diff options
context:
space:
mode:
authorWojciech Kępka2021-06-12 08:20:03 +0000
committerIvan Tham2021-06-12 09:26:41 +0000
commit4b6aff8c66d6c16d16cd80ab3ffb31776ff7bdff (patch)
tree61b41b4a32e56bb6a9718220535aafc9f11461c0 /helix-core
parent4a40e935de4d650bd61fb2a5ec6be1c3153c8606 (diff)
Use `runtime` dir when defaulting to executable location
Diffstat (limited to 'helix-core')
-rw-r--r--helix-core/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/lib.rs b/helix-core/src/lib.rs
index 3e3d0fa2..e37175c1 100644
--- a/helix-core/src/lib.rs
+++ b/helix-core/src/lib.rs
@@ -68,7 +68,7 @@ fn runtime_dir() -> std::path::PathBuf {
// fallback to location of the executable being run
std::env::current_exe()
.ok()
- .and_then(|path| path.parent().map(|path| path.to_path_buf()))
+ .and_then(|path| path.parent().map(|path| path.to_path_buf().join(RT_DIR)))
.unwrap()
}