uninstalled: use usercustomize, not sitecustomize
authorMartin Kelly <mkelly@xevo.com>
Wed, 22 Aug 2018 16:11:47 +0000 (09:11 -0700)
committerThibault Saunier <tsaunier@igalia.com>
Thu, 13 Sep 2018 10:05:33 +0000 (07:05 -0300)
commit4525078098781c36bd0974e365b66399afe4d77e
tree481641db36b90c8f140590b13928825dff9f8806
parent56130b0edd1b05601ed79590859c4112ff2ee235
uninstalled: use usercustomize, not sitecustomize

Currently, gst-uninstalled is using sitecustomize.py for adding gi
override tweaks. However, if the standard Python libraries come before
this file in sys.path, then sitecustomize.py will never be run because
the "import sitecustomize" done in site.py will use the standard Python
libraries instead. This can be seen by running "import sitecustomize;
print(sitecustomize.__file__)" inside the uninstalled environment, as
well as by checking gi.override.__path__ and seeing that the tweaks are
missing (and the overrides are misbehaving).

Switch to using usercustomize.py, which has no match in the standard
libraries and thus will be correctly imported.

https://bugzilla.gnome.org/show_bug.cgi?id=797011
gst-uninstalled.py