mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-25 16:43:17 -06:00
bugfix
This commit is contained in:
1 parent
be721f3415
commit
073459ad56
1 file changed
+1
-1
@@ -401,7 +401,7 @@ PGF_embed(PGFObject* self, PyObject *modname)
|
||||
{
|
||||
PyObject *m = PyImport_Import(modname);
|
||||
if (m == NULL) {
|
||||
PyObject *globals = PyEval_GetGlobals();
|
||||
PyObject *globals = PyEval_GetBuiltins();
|
||||
if (globals != NULL) {
|
||||
PyObject *exc = PyDict_GetItemString(globals, "ModuleNotFoundError");
|
||||
if (exc != NULL) {
|
||||
|
||||
Reference in new issue
Block a user