problem with import path on a python C extension

Carsten Haese carsten.haese at
Mon Feb 9 16:08:46 EST 2009

fredbasset1000 at wrote:
> I can only get it to work if I copy the .so file to the directory
> where 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".


Carsten Haese

More information about the Python-list mailing list