Re: PyGObject (3.4.0) - importing overrides modules from different directories

2012-10-26 Thread Lukas Vacek
Hey Simon, Thanks for pointing me to the bug report. Yes, it is possible to load overrides from different paths already. This goes a bit further and allows loading overrides from different paths no matter the order of sys.path. Let's have a look at gst-python as it is the subject of the bug repor

Re: PyGObject (3.4.0) - importing overrides modules from different directories

2012-10-26 Thread Simon Feltman
Hi Lukas, You should already be able to use overrides in different paths searchable by python (anything that shows up in sys.path). The trick is you need to use pkgutil within each of the __init__.py files within your custom gi/overrides folders. There are more details which may be a helpful in th

Re: PyGObject (3.4.0) - importing overrides modules from different directories

2012-10-26 Thread Lukas Vacek
I see the last mail didn't catch much attention. Anyway, I have come up with two possible solutions to the problem. 1) Use imp instead of __import__ Just look for a file "gi/overrides/Module_name.py" in sys.path and don't worry about __init__.py (overrides module can't use __init__.py anyway as th