yuce / pyswip

PySwip is a Python-Prolog interface that enables querying SWI-Prolog in your Python programs.
https://pyswip.org
MIT License
482 stars 98 forks source link

Find libswipl.so from `swipl --dump-runtime-variables` #145

Closed JanWielemaker closed 2 years ago

JanWielemaker commented 2 years ago

As of version 9.0.1/9.1.1, SWI-Prolog can tell where the shared object lives. This works reliably on Windows, MacOS and Linux and any other system providing dladdr(). On other systems it uses the value derived from the CMake install configuration and may be wrong if the installation is relocated.

crgz commented 2 years ago

:+1:

yuce commented 2 years ago

@JanWielemaker Thanks for the PR!