Skip to content

Commit

Permalink
Allow startup despite p7zip not being found (#40045)
Browse files Browse the repository at this point in the history
Without this, a failure to find a usable `p7zip` will cause an error at
startup.  With this, we will at least attempt to invoke `p7zip` and fail
at runtime, instead of failing at init time.
  • Loading branch information
staticfloat authored Mar 15, 2021
1 parent 572836a commit 046e2cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/p7zip_jll/src/p7zip_jll.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function init_p7zip_path()
return
end
end
global p7zip_path = Sys.which(p7zip_exe)
global p7zip_path = something(Sys.which(p7zip_exe), p7zip_exe)
end

function __init__()
Expand Down

0 comments on commit 046e2cf

Please sign in to comment.