From 7c21d551459f41da94e732917fd4b13376f87219 Mon Sep 17 00:00:00 2001 From: KrosFire Date: Sat, 21 Dec 2024 17:31:04 +0100 Subject: [PATCH] Fixed stdlib install dir fetch --- src/stdlib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stdlib.rs b/src/stdlib.rs index 50e89b99..a3ab5f58 100644 --- a/src/stdlib.rs +++ b/src/stdlib.rs @@ -4,7 +4,7 @@ use std::{env, fs, path::PathBuf}; fn get_install_dir() -> PathBuf { let exec_path = env::current_exe().expect("Could not fetch executable file path."); - PathBuf::from(exec_path.read_link().unwrap_or(exec_path)).join("std") + PathBuf::from(exec_path.read_link().unwrap_or(exec_path).parent().unwrap()).join("std") } #[cfg(debug_assertions)]