diff options
Diffstat (limited to 'Mac/Modules/res/Resmodule.c')
-rw-r--r-- | Mac/Modules/res/Resmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Mac/Modules/res/Resmodule.c b/Mac/Modules/res/Resmodule.c index e903158..f4ed648 100644 --- a/Mac/Modules/res/Resmodule.c +++ b/Mac/Modules/res/Resmodule.c @@ -1387,6 +1387,10 @@ void initRes() if (Res_Error == NULL || PyDict_SetItemString(d, "Error", Res_Error) != 0) Py_FatalError("can't initialize Res.Error"); + Resource_Type.ob_type = &PyType_Type; + Py_INCREF(&Resource_Type); + if (PyDict_SetItemString(d, "ResourceType", (PyObject *)&Resource_Type) != 0) + Py_FatalError("can't initialize ResourceType"); } /* ========================= End module Res ========================= */ |