Expose the winutil.DriveError exception to python

This commit is contained in:
Kovid Goyal 2014-06-08 09:59:14 +05:30
parent b43fd024d7
commit 188ae48b72

View File

@ -1002,6 +1002,8 @@ initwinutil(void) {
);
if (m == NULL) return;
DriveError = PyErr_NewException("winutil.DriveError", NULL, NULL);
if (DriveError == NULL) return;
PyModule_AddObject(m, "DriveError", DriveError);
PyModule_AddIntConstant(m, "CSIDL_ADMINTOOLS", CSIDL_ADMINTOOLS);
PyModule_AddIntConstant(m, "CSIDL_APPDATA", CSIDL_APPDATA);