6 eigenpy_paths = os.getenv(
"EIGENPY_WINDOWS_DLL_PATH")
7 if eigenpy_paths
is None:
10 RELATIVE_DLL_PATH1 =
"..\\..\\..\\..\\bin"
12 RELATIVE_DLL_PATH2 =
"..\\..\\..\\bin"
14 RELATIVE_DLL_PATH3 =
"..\\..\\bin"
16 os.path.join(os.path.dirname(__file__), RELATIVE_DLL_PATH1),
17 os.path.join(os.path.dirname(__file__), RELATIVE_DLL_PATH2),
18 os.path.join(os.path.dirname(__file__), RELATIVE_DLL_PATH3),
21 return eigenpy_paths.split(os.pathsep)
25 """Restore DllDirectory state after importing Python module"""
33 self.
dll_dirs.append(os.add_dll_directory(dll_dir))