Deltares/xmipy

Issue resolving relative lib_dependency path on Windows

jdhughes-usgs opened this issue · 0 comments

On Windows:

xmiobj = xmipy("../path/to/dll")

results in OSError: [WinError 87] The parameter is incorrect

This can be resolved by modifying

os.environ["PATH"] = lib_dependency + os.pathsep + os.environ["PATH"]
to

os.environ["PATH"] = str(Path(lib_dependency).absolute()) + os.pathsep + os.environ["PATH"]