summaryrefslogtreecommitdiff
path: root/src/python/gudhi/_distributor_init.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/gudhi/_distributor_init.py')
-rw-r--r--src/python/gudhi/_distributor_init.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/python/gudhi/_distributor_init.py b/src/python/gudhi/_distributor_init.py
deleted file mode 100644
index 6f3dc8a2..00000000
--- a/src/python/gudhi/_distributor_init.py
+++ /dev/null
@@ -1,18 +0,0 @@
-'''
-Helper to preload windows dlls to prevent dll not found errors.
-Once a DLL is preloaded, its namespace is made available to any subsequent DLL.
-'''
-import os
-if os.name == 'nt':
- # convention for storing / loading the DLL from gudhi/.libs/, if present
- try:
- basedir = os.path.dirname(__file__)
- except:
- pass
- else:
- libs_dir = os.path.abspath(os.path.join(basedir, '.libs'))
- if os.path.isdir(libs_dir):
- from ctypes import WinDLL
- import glob
- for filename in glob.glob(os.path.join(libs_dir, '*dll')):
- WinDLL(os.path.abspath(filename))