mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-04 19:25:27 -07: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);
|
PyObject *m = PyImport_Import(modname);
|
||||||
if (m == NULL) {
|
if (m == NULL) {
|
||||||
PyObject *globals = PyEval_GetGlobals();
|
PyObject *globals = PyEval_GetBuiltins();
|
||||||
if (globals != NULL) {
|
if (globals != NULL) {
|
||||||
PyObject *exc = PyDict_GetItemString(globals, "ModuleNotFoundError");
|
PyObject *exc = PyDict_GetItemString(globals, "ModuleNotFoundError");
|
||||||
if (exc != NULL) {
|
if (exc != NULL) {
|
||||||
|
|||||||
Reference in new issue
Block a user