mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fixes that should make it possible to run Python on machines without NavServices installed.
This commit is contained in:
parent
5c204ae15f
commit
04b85498b8
1 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue