After embeding a Python module into a C app., when running it, errors poped,
ImportError: No module named pyfunction
The solution is
1) in a Console, run
gcc first.c -o first `python-config --cflags` `python-config --ldflags`
PYTHONPATH=. ./first
2) a second alternative solution is
after building the c file as above, run with the folowing shell:
#OK
export PYTHONPATH=./first
first/first
This is also OK