Skip to content

Commit

Permalink
Add Path workaround for windows (JuliaInterop#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
bolognam authored Jun 11, 2024
1 parent 7b46227 commit 3bd0547
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/MATLAB.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ function __init__()
if libmx_size > 0 # non-zero size library path

# load libraries

# workaround for https://github.com/JuliaInterop/MATLAB.jl/issues/200
if Sys.iswindows()
ENV["PATH"] = string(matlab_libpath, ";", ENV["PATH"])
end
libmx[] = Libdl.dlopen(joinpath(matlab_libpath, "libmx"), Libdl.RTLD_GLOBAL)
libmat[] = Libdl.dlopen(joinpath(matlab_libpath, "libmat"), Libdl.RTLD_GLOBAL)
libeng[] = Libdl.dlopen(joinpath(matlab_libpath, "libeng"), Libdl.RTLD_GLOBAL)
Expand Down

0 comments on commit 3bd0547

Please sign in to comment.