Skip to content

Commit

Permalink
add debug message in case of failure
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Sep 23, 2022
1 parent 3d619ac commit 3e0eaea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions GRPreferences/src/GRPreferences.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ module GRPreferences
using Preferences
try
import GR_jll
catch
catch err
@debug "import GR_jll failed" err
end

const os = Sys.KERNEL === :NT ? :Windows : Sys.KERNEL
Expand All @@ -27,17 +28,17 @@ module GRPreferences
binary = @load_preference("binary", haskey(ENV, "GRDIR") ? "system" : "GR_jll")
if binary == "GR_jll"
grdir[] = GR_jll.find_artifact_dir()
gksqt[] = GR_jll.gksqt_path
libGR[] = GR_jll.libGR
libGR3[] = GR_jll.libGR3
libGRM[] = GR_jll.libGRM
gksqt[] = GR_jll.gksqt_path
libpath[] = GR_jll.LIBPATH[]
elseif binary == "system"
grdir[] = haskey(ENV, "GRDIR") ? ENV["GRDIR"] : @load_preference("grdir")
gksqt[] = joinpath(grdir[], "bin", "gksqt" * (os === :Windows ? ".exe" : ""))
libGR[] = lib_path(grdir[], "libGR")
libGR3[] = lib_path(grdir[], "libGR3")
libGRM[] = lib_path(grdir[], "libGRM")
gksqt[] = joinpath(grdir[], "bin", "gksqt" * (os === :Windows ? ".exe" : ""))
libpath[] = joinpath(grdir[], "lib")
else
error("Unknown GR binary: $binary")
Expand Down

0 comments on commit 3e0eaea

Please sign in to comment.