[Nix-dev] python search path and PyQt4&dbus
Lluís Batlle i Rossell
viriketo at gmail.com
Wed Aug 25 21:23:51 CEST 2010
Привет,
On Wed, Aug 25, 2010 at 10:39:40PM +0400, Yury G. Kudryashov wrote:
> Hi!
>
> I'm working on d-bus support in PyQt4. See current patch.
>
> There is one issue that stops me from commiting this patch to SVN: it
> doesn't work ;)
>
> PyQt4 installs file $pyqt/lib/python2.6/site-packages/dbus/mainloop/qt.so
> but if someone writes
>
> import dbus.mainloop.qt
>
> then Python finds dbus.mainloop in $pythonDBus/lib/python2.6/site-
> packages/dbus/mainloop/__init__.py, then looks for dbus.mainloop.qt *only*
> in $pythonDBus, not in full PYTHONPATH.
>
> Any ideas how to fix it?
I think that PyGTK (or however it is named) has also some tricks on where to
find other gtk-related python modules.
Maybe that can serve as inspiration? Marc Weber dealt with that I think.
More information about the nix-dev
mailing list