ACDK Python (acdk_python)With acdk_python, you can instrument a Python interpreter inside of your acdk application and you are able to have access to all ACDK-Objects in your Python environment.
Content of this chapter: |
With acdk_python, you can instrument a Python interpreter inside of your acdk application and you are able to have access to all ACDK-Objects in your Python environment.
acdk_core acdk_text
acdk::python;
Roger Rene Kommer (kommer@artefaktur.com).
ACDK Free Edition Licens.
RPythonInterpreter pi = new PythonInterpreter(); pi->parse("print \"Hello World\"\n"); |
def foo(string1, string2): sb = acdk.Object("acdk/lang/StringBuffer", string1) sb.append(string2) return sb.toString() acdk.peek_static("acdk/lang/System", "out").println(foo("Hello Python", " from ACDK")) |
The executable acdkpython provides a simple command line Python interpreter.
To compile acdk_python on Windows you have to compile Python itself.
The binary distribution of 2.* doesn't work, because there are files missing.
Before compiling acdk_python you probably have to ajust the values for Pythons include directory and library directory/name.
Therefore edit the acdk_python/python_cfg.lsp and remake the make file with:
> make -f acdk_python.makemake
Therefore you have to compiled and installed acdk_lisp.
Many parts are not implemented yet.
=========================================================== 4.10.0 - nothing important
Please refer also to ChangeLog.
=========================================================== 4.02.0 - Configuration and documentation fixes.
=========================================================== 4.01.1 - Ajustments to modified metainfo - minor documentation changes.
See also ChangeLog.
=========================================================== 4.00.1 - Ajustments to Unicode and revised metainfo.
=========================================================== acdk_python 2.00.1 - Ajustments to new DMI.