From 505acd4b23e017d8984ada439b34e7eda2c12675 Mon Sep 17 00:00:00 2001 From: Alois Date: Sat, 16 May 2026 17:15:36 +0200 Subject: [PATCH] [Fix] now gets directory based on 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 cd214b1..344d967 100644 --- a/src/util/file_util.rs +++ b/src/util/file_util.rs @@ -177,9 +177,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() }