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