Commit 04b85498 authored by Jack Jansen's avatar Jack Jansen

Fixes that should make it possible to run Python on machines without NavServices installed.

parent 5c204ae1
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment