mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-10 13:29:32 -06:00
now we can load PGF files as precompiled modules
This commit is contained in:
@@ -1285,11 +1285,7 @@ PGF_embed(PGFObject* self, PyObject *modname)
|
||||
py_embedding->grammar = self; Py_INCREF(self);
|
||||
|
||||
const char *fpath = pgf_file_path(self->db);
|
||||
if (fpath == NULL) {
|
||||
py_embedding->grammar_path = Py_None; Py_INCREF(Py_None);
|
||||
} else {
|
||||
py_embedding->grammar_path = PyUnicode_FromString(fpath);
|
||||
}
|
||||
py_embedding->grammar_path = PyUnicode_FromString(fpath);
|
||||
|
||||
if (module == NULL) {
|
||||
py_embedding->package_path = PyList_New(0);
|
||||
|
||||
Reference in New Issue
Block a user