yuce / pyswip

PySwip is a Python - SWI-Prolog bridge enabling to query SWI-Prolog in your Python programs. It features an (incomplete) SWI-Prolog foreign language interface, a utility class that makes it easy querying with Prolog and also a Pythonic interface.
MIT License
464 stars 97 forks source link

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

Closed JanWielemaker closed 1 year ago

JanWielemaker commented 1 year 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 1 year ago

:+1:

yuce commented 1 year ago

@JanWielemaker Thanks for the PR!