summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeGUDHIVersion.txt2
-rw-r--r--src/python/gudhi/_distributor_init.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/CMakeGUDHIVersion.txt b/CMakeGUDHIVersion.txt
index fab3ee75..21f3d58c 100644
--- a/CMakeGUDHIVersion.txt
+++ b/CMakeGUDHIVersion.txt
@@ -1,6 +1,6 @@
set (GUDHI_MAJOR_VERSION 3)
set (GUDHI_MINOR_VERSION 2)
-set (GUDHI_PATCH_VERSION 0a18)
+set (GUDHI_PATCH_VERSION 0a19)
set(GUDHI_VERSION ${GUDHI_MAJOR_VERSION}.${GUDHI_MINOR_VERSION}.${GUDHI_PATCH_VERSION})
message(STATUS "GUDHI version : ${GUDHI_VERSION}")
diff --git a/src/python/gudhi/_distributor_init.py b/src/python/gudhi/_distributor_init.py
index 0ed451f9..6f3dc8a2 100644
--- a/src/python/gudhi/_distributor_init.py
+++ b/src/python/gudhi/_distributor_init.py
@@ -3,8 +3,6 @@ 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
-from ctypes import WinDLL
-import glob
if os.name == 'nt':
# convention for storing / loading the DLL from gudhi/.libs/, if present
try:
@@ -14,5 +12,7 @@ if os.name == 'nt':
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))