Initialize and configure the embedded Python system. If this
predicate is not called before any other call to Python such as
py_call/2, it is called lazily, passing the Prolog executable as
Program, passing Argv from the Prolog flag py_argv
and an empty
Options list.
Calling this predicate while the Python is already initialized is
a no-op. This predicate is thread-safe, where the first call
initializes Python.
In addition to initializing the Python system, it
- Adds the directory holding
janus.py
to the Python module
search path.
- If Prolog I/O is not connected to the file handles 0,1,2,
it rebinds Python I/O to use the Prolog I/O.
- Arguments:
-
Options | - is currently ignored. It will be used to provide
additional configuration options. |