Skip to content

Commit

Permalink
Fixed stdlib install dir fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
KrosFire committed Dec 21, 2024
1 parent c3fd08f commit 7c21d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stdlib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 7c21d55

Please sign in to comment.