Skip to content

Commit

Permalink
Merge pull request #747 from MikeInnes/mji/symlink
Browse files Browse the repository at this point in the history
Fix DB update when julia launcher is symlinked
  • Loading branch information
davidanthoff authored Nov 14, 2023
2 parents 73d227f + d555921 commit 09fad43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bin/julialauncher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ pub struct UserError {

fn get_juliaup_path() -> Result<PathBuf> {
let my_own_path = std::env::current_exe()
.with_context(|| "std::env::current_exe() did not find its own path.")?;
.with_context(|| "std::env::current_exe() did not find its own path.")?
.canonicalize()
.with_context(|| "Failed to canonicalize the path to the Julia launcher.")?;

let juliaup_path = my_own_path
.parent()
Expand Down

0 comments on commit 09fad43

Please sign in to comment.