Re: Search path for typelibs
- From: Jonathan Ryan <jryan curious-os com>
- To: python-hackers-list gnome org
- Subject: Re: Search path for typelibs
- Date: Fri, 13 May 2011 09:28:14 -0400
On Fri, 13 May 2011 09:24:08 +0200
Damien Caliste <damien caliste cea fr> wrote:
> Hello,
>
> I'm wondering how to tell pyGObject to look in a specific path when
> importing a typelib. Typical use case is that mypackage is installed
> in a non-system directory (let's say
> $HOME/devel/usr/lib/girepository-1.0 for devel and testing purpose)
> and "from gi.repository import mypackage" fails when doing the
> enumerate_versions() in importer.py.
>
> I try to use PYTHONPATH or change sys.path to add my
> non-system installation directory but it's not working.
>
> Any idea?
>
> Thanks,
>
> Damien.
> _______________________________________________
> python-hackers-list mailing list
> python-hackers-list gnome org
> http://mail.gnome.org/mailman/listinfo/python-hackers-list
Have you considered using jhbuild for a local build enviornment? It
automatically sets up the correct env variables for you:
https://live.gnome.org/Jhbuild
I think you need your GI_TYPELIB_PATH set correctly.
--
Jonathan Ryan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]