Skip to content

Commit

Permalink
change init file dll
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgen-lentz committed Oct 8, 2024
1 parent ca195c2 commit 6f46088
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions amplpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
import sys
import os

if hasattr(os, 'add_dll_directory'):
os.add_dll_directory(os.path.join(os.path.dirname(__file__), "amplpython", "cppinterface", "lib"))

from _amplpy import OutputHandler, Kind
from _amplpy import ErrorHandler
from _amplpy import AMPLException, PresolveException, InfeasibilityException
Expand Down
3 changes: 0 additions & 3 deletions amplpy/amplpython/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
import ctypes
import platform

if hasattr(os, 'add_dll_directory'):
os.add_dll_directory(os.path.join(os.path.dirname(__file__), "cppinterface", "lib"))

if platform.system().startswith(("Windows", "MSYS", "CYGWIN", "MINGW")):
libbase = os.path.join(os.path.dirname(__file__), "cppinterface", "lib")
lib32 = os.path.join(libbase, "intel32")
Expand Down

0 comments on commit 6f46088

Please sign in to comment.