7 coal_paths = os.getenv(
"COAL_WINDOWS_DLL_PATH")
11 RELATIVE_DLL_PATH1 =
"..\\..\\..\\..\\bin"
13 RELATIVE_DLL_PATH2 =
"..\\..\\..\\bin"
15 RELATIVE_DLL_PATH3 =
"..\\..\\bin"
17 os.path.join(os.path.dirname(__file__), RELATIVE_DLL_PATH1),
18 os.path.join(os.path.dirname(__file__), RELATIVE_DLL_PATH2),
19 os.path.join(os.path.dirname(__file__), RELATIVE_DLL_PATH3),
22 return coal_paths.split(os.pathsep)
26 """Restore PATH state after importing Python module"""
29 os.environ[
"PATH"] += os.pathsep + dll_dir
40 """Restore DllDirectory state after importing Python module"""
48 self.
dll_dirs.append(os.add_dll_directory(dll_dir))
62 if sys.version_info >= (3, 8):