Skip to content
Commit b1a9848a authored by Thibault Saunier's avatar Thibault Saunier Committed by Martin Pitt
Browse files

Allow overrides in other directories than gi itself

Use pkgutil.extend_path() for the gi and gi.overrides modules, so that
libraries can install overrides in a path that is different from the one that
pygobject installs itself into. These overrides need to put this into their
__init__.py at the top:

    from pkgutil import extend_path
    __path__ = extend_path(__path__, __name__)

and put themselves somewhere into the default PYTHONPATH.

https://bugzilla.gnome.org/show_bug.cgi?id=680913



Co-Authored-By: default avatarMartin Pitt <martinpitt@gnome.org>
Co-Authored-By: default avatarSimon Feltman <s.feltman@gmail.com>
parent c7c95a79
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment