From 46883e1f95fabac64e305c47bc40d2a9b9f41be9 Mon Sep 17 00:00:00 2001 From: Garrett Barter Date: Mon, 15 Apr 2024 08:41:34 -0600 Subject: [PATCH] correct import paths --- pymap/__init__.py | 3 ++- pymap/pymap.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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)