diff --git a/components/util/resource_files.rs b/components/util/resource_files.rs index 67ae9f6550a..dcb9646f42c 100644 --- a/components/util/resource_files.rs +++ b/components/util/resource_files.rs @@ -34,6 +34,8 @@ pub fn resources_dir_path() -> PathBuf { // under `[/$target_triple]/target/debug` // or `[/$target_triple]/target/release`. let mut path = env::current_exe().expect("can't get exe path"); + // Follow symlink + path = path.canonicalize().expect("path does not exist"); path.pop(); path.push("resources"); if !path.is_dir() { // resources dir not in same dir as exe?