Re: Extending g-ir bindings
- From: Paul Colomiets <paul colomiets name>
- To: David Nečas <yeti physics muni cz>
- Cc: python-hackers-list gnome org
- Subject: Re: Extending g-ir bindings
- Date: Sun, 2 Oct 2011 16:32:38 +0300
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
gi.overrrides.__path__.append('/path/to/your/modules')
Then `from gi.overrides import whatever` will search for the
`/path/to/your/modules/whatever.py`.
--
Paul
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]