Skip to content

Commit 4f5044a

Browse files
authored
Allow startup despite p7zip not being found (#40049)
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.
1 parent 1897e08 commit 4f5044a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/p7zip_jll/src/p7zip_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function init_p7zip_path()
7777
return
7878
end
7979
end
80-
global p7zip_path = Sys.which(p7zip_exe)
80+
global p7zip_path = something(Sys.which(p7zip_exe), p7zip_exe)
8181
end
8282

8383
function __init__()

0 commit comments

Comments
 (0)