Skip to content

Commit 4d9b985

Browse files
committed
Makte pointer to dependenca y path explicit.
1 parent 23001d9 commit 4d9b985

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

src/MathLink.jl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@ export @W_str, @W_cmd, weval
66

77

88
###Checking that the deps.jl file exists. And throwing a readable error if it does not!
9-
if isfile("../deps/deps.jl")
10-
include("../deps/deps.jl")
9+
10+
FilePath=@__DIR__
11+
FilePath=FilePath[1:end-4]*"/deps/deps.jl"
12+
13+
14+
#if isfile("../deps/deps.jl")
15+
#include("../deps/deps.jl")
16+
if isfile(FilePath)
17+
include(FilePath)
1118
else
12-
FilePath=@__DIR__
13-
FilePath=FilePath[1:end-4]*"/deps/deps.jl"
1419
error("The file $FilePath does not exist.\n"
1520
*"This usually means that the MathLink installation failed.\n"
1621
*"Have you checked that Mathematica is installed on your system?")

src/init.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ function refcount_dec()
3535
end
3636

3737
function __init__()
38-
if mlib == "" ###when JULIA_REGISTRYCI_AUTOMERGE=true the mlib is an empty string, and we can test for that
38+
if mlib == ""
39+
###when JULIA_REGISTRYCI_AUTOMERGE=true the mlib is an empty string, and we can test for that
3940
# We need to be able to install and load this package without error for
4041
# Julia's registry AutoMerge to work. Skip initialization of the mathlink library.
4142
@info "Pretending fake installation works"

0 commit comments

Comments
 (0)