diff --git a/pymap/__init__.py b/pymap/__init__.py index 1a3fe64..d93d3c8 100644 --- a/pymap/__init__.py +++ b/pymap/__init__.py @@ -1 +1,2 @@ -from .pymap import pyMAP +from pymap.pymap import pyMAP + diff --git a/pymap/pymap.py b/pymap/pymap.py index f831549..d4b0f3e 100644 --- a/pymap/pymap.py +++ b/pymap/pymap.py @@ -32,7 +32,7 @@ import os -from distutils.sysconfig import get_config_var +from sysconfig import get_config_var from sys import platform @@ -310,7 +310,7 @@ def initLib(cls, dllFileName=None): libext = '.dll' maplib = '_libmap' + libext - dllFileName = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + os.path.sep + maplib + dllFileName = os.path.dirname(os.path.abspath(__file__)) + os.path.sep + maplib # Load the library and setup C-interfaces lib = setupLib(dllFileName)