From fe0250218dd5858822270935a5d672a1d1368327 Mon Sep 17 00:00:00 2001 From: Alois Date: Sat, 16 May 2026 17:34:10 +0200 Subject: [PATCH] [Fix] use working directory instead of executable directory --- src/util/file_util.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/util/file_util.rs b/src/util/file_util.rs index b108810..f1c51db 100644 --- a/src/util/file_util.rs +++ b/src/util/file_util.rs @@ -163,9 +163,8 @@ pub fn get_children(path: &str) -> Vec { } pub fn get_directory() -> String { - let exe = std::env::current_exe().unwrap_or_else(|_| PathBuf::from(".")); - exe.parent() - .unwrap_or(Path::new(".")) + std::env::current_dir() + .unwrap_or_else(|_| PathBuf::from(".")) .to_string_lossy() .to_string() }