From c1cc1d48a9733f42ef48c68386588ea0d52be351 Mon Sep 17 00:00:00 2001 From: Matthew Hollingworth Date: Sun, 28 May 2023 12:31:00 +1000 Subject: [PATCH] allow whitebox executable to be symlinked --- whitebox-tools-app/src/tools/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whitebox-tools-app/src/tools/mod.rs b/whitebox-tools-app/src/tools/mod.rs index 1738ffbf..50a0ac9c 100755 --- a/whitebox-tools-app/src/tools/mod.rs +++ b/whitebox-tools-app/src/tools/mod.rs @@ -1199,7 +1199,7 @@ impl ToolManager { fn get_plugin_list(&self) -> Result, Error> { // let exe_path = std::env::current_dir()?.to_str().unwrap_or("No exe path found.").to_string(); - let mut dir = env::current_exe()?; + let mut dir = fs::canonicalize(env::current_exe()?)?; dir.pop(); dir.push("plugins"); let plugin_directory = dir.to_str().unwrap_or("No exe path found.").to_string();