Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Mar 11, 2024
1 parent 58771d8 commit 1230bed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions src/Lib/Lib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ module Lib
import ..Xpress
global libxprs = Xpress.libxprs

function _set_libxprs(new_libxprs)
global libxprs = new_libxprs
return
end

include("common.jl")
include("xprs.jl")

Expand Down
3 changes: 1 addition & 2 deletions src/Xpress.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ include("MOI/MOI_callbacks.jl")

function __init__()
if haskey(ENV, "XPRESS_JL_LIBRARY")
global libxprs = ENV["XPRESS_JL_LIBRARY"]
Lib._set_libxprs(libxprs)
global libxprs = Lib.libxprs = ENV["XPRESS_JL_LIBRARY"]
elseif isempty(libxprs) && !haskey(ENV, "XPRESS_JL_NO_DEPS_ERROR")
error("XPRESS cannot be loaded. Please run Pkg.build(\"Xpress\").")

Check warning on line 62 in src/Xpress.jl

View check run for this annotation

Codecov / codecov/patch

src/Xpress.jl#L61-L62

Added lines #L61 - L62 were not covered by tests
end
Expand Down

0 comments on commit 1230bed

Please sign in to comment.