From 3bd0547ce784911dc05f86e420b18086122d6f3b Mon Sep 17 00:00:00 2001 From: bolognam Date: Mon, 10 Jun 2024 21:31:57 -0700 Subject: [PATCH] Add Path workaround for windows (#226) --- src/MATLAB.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/MATLAB.jl b/src/MATLAB.jl index 2af59ac..4dbf2aa 100644 --- a/src/MATLAB.jl +++ b/src/MATLAB.jl @@ -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)