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

Fixed not finding swipl lib file when there are multiple options #153

Closed AdiHarif closed 3 months ago

AdiHarif commented 1 year ago

Before this patch it would not find libswipl.so because in my installation there were two libs:

  1. libswipl.so.8.4.3
  2. libswipl.so.8 (which is a symlink to the first)

Happened on Fedora 37 using python 3.11 and swipl 8.4.3