Fast-track to installing/implementing a SWIP module?
Oschler at earthlink.net
Sun Sep 29 05:43:34 CEST 2002
"Gerhard Häring" <gerhard.haering at gmx.de> wrote in message
news:slrnapcp8g.617.gerhard.haering at lilith.my-fqdn.de...
> Robert Oschler wrote in comp.lang.python:
> If I understand correcly, you only have to have SWI-Prolog in your PATH,
> the following:
> python setup.py build
> will build everything and
> python setup.py install
> will install your modules.
> Explanation: This function:
> def get_atom(atom):
> query = "pl -f none -g 'current_prolog_flag(%s, V), write(V),
nl.' -t 'halt'"
> f = os.popen(query % atom)
> in setup.py should do the magic of finding the include and library paths
> link against SWI Prolog.
> -- Gerhard
Thanks that's exactly what I needed. I'm still having a hard time with the
'ease' that things happen when doing things in Python.
More information about the Python-list