wiki:plugin_python

The Python plugin needs to be enabled via configure:

  $ configure --with-python

If you managed to compile it in then you can call it in expressions using the following form:

 python::exec( python_modulename, python_func_name, arg)

All args are mandatory. arg is a single string argument in Python and may have to be unpacked in the Python code.

Example:

  expression python::exec('mypy','echo',LCD::GPI(1) . ',ggg ,' . tick)

If your module (mypy) is not in a standard location, you must set PYTHONPATH to where your module is located before executing lcd4linux.