Hi all,
I'm currently migrating an application from a windows platform to linux.
I have somewhere a module which uses embedded python: (a python script where I want to call some functions...)
// Initialize the python library
Py_Initialize();
PyObject *pName = PyString_FromString("RASBatch");
// Load the Python module
m_pModule = PyImport_Import(pName);
if (m_pModule != NULL)
{
...
}
else
{
...
}
Loading the module always returns NULL...
When starting python on the command line, I can import the python script and execute the function which i want to call from my C module.
I've tried also copying the script on several locations...
Anyone any idea?
(Using python 2.2 on suse8.2)
Thanks in advance!
Geert
-- http://mail.python.org/mailman/listinfo/python-list