Skip to content

Commit

Permalink
add lib to PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgen-lentz committed Oct 9, 2024
1 parent 87f3f4c commit f390659
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
CIBW_ARCHS_LINUX: auto
CIBW_ARCHS_MACOS: x86_64 universal2
CIBW_BEFORE_BUILD: pip install cython
CIBW_SKIP: pp* cp27-* cp36-* cp37-* cp38-* *_i686 *-win32 *musllinux*
CIBW_SKIP: pp* cp27-* *_i686 *-win32 *musllinux*
CIBW_TEST_COMMAND: python -m amplpy.tests
CIBW_TEST_REQUIRES: --index-url https://pypi.ampl.com --extra-index-url https://pypi.org/simple ampl_module_base ampl_module_highs pandas numpy

Expand Down
2 changes: 2 additions & 0 deletions amplpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import sys
import os

sys.path.append(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"))

Expand Down

0 comments on commit f390659

Please sign in to comment.