mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Expose the winutil.DriveError exception to python
This commit is contained in:
parent
b43fd024d7
commit
188ae48b72
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user