From 4b6aff8c66d6c16d16cd80ab3ffb31776ff7bdff Mon Sep 17 00:00:00 2001 From: Wojciech Kępka Date: Sat, 12 Jun 2021 10:20:03 +0200 Subject: Use `runtime` dir when defaulting to executable location --- helix-core/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() } -- cgit v1.2.3-70-g09d2