#645391 python-gobject: gobject-introspection do not find locally installed .gir and .typelib

Package:
gobject-introspection
Source:
gobject-introspection
Description:
Generate interface introspection data for GObject libraries
Submitter:
Picca Frédéric-Emmanuel
Date:
2011-11-09 13:39:14 UTC
Severity:
normal
#645391#5
Date:
2011-10-15 09:43:03 UTC
From:
To:
Dear Maintainer,

I am working on my liabray hkl and try to add gobject-introspection.
so during developpement I install the library into
/usr/local (the default prefix of autotools)

so my .gir and .typelib files are :

/usr/local/lib/girepository-1.0/Hkl-4.0.typelib
/usr/local/share/gir-1.0/Hkl-4.0.gir


and when I try to import the library from python

I get

In [1]: from gi.repository import Hkl
ERROR:root:Could not find any typelib for Hkl
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/home/picca/Projets/hkl/<ipython-input-1-bf2b38d3a0a5> in <module>()
----> 1 from gi.repository import Hkl

ImportError: cannot import name Hkl


so, my question is

Can you configure the gobject-introspection, to look by default also for locally installed repository


thanks for your attention


Frederic