Skip to content

Commit

Permalink
Check for license in ${XPRESSDIR}/bin
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Sep 19, 2024
1 parent c885d03 commit e3add04
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/license.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ function _get_xpauthpath(xpauth_path = "", verbose::Bool = true)
# variables.
for key in ("XPAUTH_PATH", "XPRESSDIR")
if haskey(ENV, key)
path = replace(ENV[key], "\"" => "")
# With the default filename
push!(candidates, joinpath(replace(ENV[key], "\"" => ""), XPAUTH))
push!(candidates, joinpath(path, XPAUTH))
# in /bin
push!(candidates, joinpath(path, "bin", XPAUTH))
# and without
push!(candidates, replace(ENV[key], "\"" => ""))
push!(candidates, path)
end
end
# Search in `xpress/lib/../bin/xpauth.xpr`. This is a common location on
Expand Down

0 comments on commit e3add04

Please sign in to comment.