From: Michael R. <re...@eu...> - 2005-05-03 11:26:30
|
Hi Dan and others, > As for the first step of the python integration.... > > I've updated your plugin_python.c file in such a way that it: > - has a small footprint (nothing else is changed in the source code) > - is independent of the lcd4linux_wrapper* > - can operate even when main() is in C > - (probably) can co-exist with lcd4linux_wrapper (not tested)* > - can execute any global python function that takes a string in and > returns a string Fine. I just checked it in. btw, the pyt_exec_str() function takes a variable number of arguments, so can a plugin do. Maybe you should change that... > To make python_plugin.c compile and link i had to add: > DEFS+=$(PYTHON_CPPFLAGS) > LIBS+=$(PYTHON_EXTRA_LIBS) > to the Makefile > > I also had to: > > export PYTHONPATH=. Everything should be detected by autoconf now. If you did a 'cvs update', you should run ./bootstrap to ensure everything is updated correctly. Thanks for your contribution! oh, onelast thing: please do not send complete files to the mailing list... I prefer patches against CVS ('cvs -z9 diff -u' is your friend :-) bye, Michael -- Michael Reinelt <re...@eu...> http://home.pages.at/reinelt GPG-Key 0xDF13BA50 ICQ #288386781 |