problem with import path on a python C extension

Carsten Haese carsten.haese at gmail.com
Mon Feb 9 22:08:46 CET 2009


fredbasset1000 at gmail.com wrote:
> I can only get it to work if I copy the .so file to the directory
> where daemon.py is and change the import to "import diomodule".

And to supplement my previous reply, another solution is to make sure
that /root/project/drivers/dio is in your PYTHONPATH. Then you can
simply "import diomodule" and refer to the module by the name "diomodule".

HTH,

--
Carsten Haese
http://informixdb.sourceforge.net



More information about the Python-list mailing list