diff options
Diffstat (limited to 'src/if_python.c')
-rw-r--r-- | src/if_python.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/if_python.c b/src/if_python.c index 6e1cb0c0f..fb2d8986b 100644 --- a/src/if_python.c +++ b/src/if_python.c @@ -1341,6 +1341,7 @@ PythonMod_Init(void) PyType_Ready(&BufListType); PyType_Ready(&WinListType); PyType_Ready(&CurrentType); + PyType_Ready(&OptionsType); /* Set sys.argv[] to avoid a crash in warn(). */ PySys_SetArgv(1, argv); @@ -1360,6 +1361,9 @@ PythonMod_Init(void) tmp = DictionaryNew(&vimvardict); PyDict_SetItemString(dict, "vvars", tmp); Py_DECREF(tmp); + tmp = OptionsNew(SREQ_GLOBAL, NULL, dummy_check, NULL); + PyDict_SetItemString(dict, "options", tmp); + Py_DECREF(tmp); PyDict_SetItemString(dict, "VAR_LOCKED", PyInt_FromLong(VAR_LOCKED)); PyDict_SetItemString(dict, "VAR_FIXED", PyInt_FromLong(VAR_FIXED)); PyDict_SetItemString(dict, "VAR_SCOPE", PyInt_FromLong(VAR_SCOPE)); |