summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Modules/Nav.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Mac/Modules/Nav.c b/Mac/Modules/Nav.c
index d229458..d8ef6ef 100644
--- a/Mac/Modules/Nav.c
+++ b/Mac/Modules/Nav.c
@@ -947,6 +947,11 @@ initNav()
{
PyObject *m, *d;
+ /* Test that we have NavServices */
+ if ( !NavServicesAvailable() ) {
+ PyErr_SetString(PyExc_ImportError, "Navigation Services not available");
+ return;
+ }
/* Create the module and add the functions */
m = Py_InitModule4("Nav", nav_methods,
Nav_module_documentation,