From 4b6aff8c66d6c16d16cd80ab3ffb31776ff7bdff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20K=C4=99pka?= Date: Sat, 12 Jun 2021 10:20:03 +0200 Subject: [PATCH] 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 3e3d0fa29..e37175c1d 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() }