forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / development / libraries / libpeas / fix-paths.patch
blobc54cdd8873f5487c30f412635e01a2931725f105
1 diff --git a/loaders/python/peas-plugin-loader-python.c b/loaders/python/peas-plugin-loader-python.c
2 index 26edbf3..0d65ada 100644
3 --- a/loaders/python/peas-plugin-loader-python.c
4 +++ b/loaders/python/peas-plugin-loader-python.c
5 @@ -248,6 +248,9 @@ peas_plugin_loader_python_initialize (PeasPluginLoader *loader)
6 goto python_init_error;
9 + /* Add PyGObject to path */
10 + PyRun_SimpleString("import site; import functools; functools.reduce(lambda k, p: site.addsitedir(p, k), [@pythonPaths@], site._init_pathinfo())");
12 /* Initialize PyGObject */
13 pygobject_init (PYGOBJECT_MAJOR_VERSION,
14 PYGOBJECT_MINOR_VERSION,