Re: Extending g-ir bindings

2011/9/27 David Nečas <yeti physics muni cz>:
> The core issue seems to be that
>   overrides_modules = __import__('gi.overrides', fromlist=[self._namespace])
> employs the standard Python package lookup mechanism which means if it
> finds gi.overrides somewhere it concludes this is where gi.overrides
> resides and subsequently it only looks for the subpackages in this
> directory.  It should search sys.path for each subpackage separately.
> This might be fixable by adding another module finder/loader, this time
> for the overrides.

If the only problem is the import. Than you can try:

import gi.overrides

Then `from gi.overrides import whatever` will search for the


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]