From 2465abd7c7a2e2ab31f7f15d5ff46df951c73eb6 Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Fri, 24 Mar 2023 13:20:00 +0100 Subject: [PATCH] the PGF finder should be last not first --- src/runtime/python/pypgf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/python/pypgf.c b/src/runtime/python/pypgf.c index 357ead6c6..98a16a6ac 100644 --- a/src/runtime/python/pypgf.c +++ b/src/runtime/python/pypgf.c @@ -1865,7 +1865,7 @@ MOD_INIT(pgf) PyObject *meta_path = PyObject_GetAttrString(sys, "meta_path"); Py_DECREF(sys); if (meta_path != NULL) { - PyList_Insert(meta_path, 0, (PyObject*) &pgf_GrammarImporterType); + PyList_Append(meta_path, (PyObject*) &pgf_GrammarImporterType); Py_DECREF(meta_path); } }