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() }