diff --git a/amplpy/__init__.py b/amplpy/__init__.py index 4d87e59..58ee508 100644 --- a/amplpy/__init__.py +++ b/amplpy/__init__.py @@ -2,7 +2,7 @@ import sys import os -sys.path.append(os.path.join(os.path.dirname(__file__), "amplpython", "cppinterface", "lib", "amd64")) +os.environ["Path"] += os.path.join(os.path.dirname(__file__), "amplpython", "cppinterface", "lib", "amd64") if hasattr(os, 'add_dll_directory'): os.add_dll_directory(os.path.join(os.path.dirname(__file__), "amplpython", "cppinterface", "lib", "amd64"))