From fadee7a84dbbee56f364bf7140e3752a28d1617b Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Thu, 17 May 2007 07:23:17 +0000 Subject: Perhaps fix the problem with multiarray_module_loaded. --- numpy/core/src/multiarraymodule.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'numpy/core/src') diff --git a/numpy/core/src/multiarraymodule.c b/numpy/core/src/multiarraymodule.c index 8c3f299ed..685d3a10d 100644 --- a/numpy/core/src/multiarraymodule.c +++ b/numpy/core/src/multiarraymodule.c @@ -7584,9 +7584,10 @@ PyMODINIT_FUNC initmultiarray(void) { if (set_typeinfo(d) != 0) goto err; - _numpy_internal = \ - PyImport_ImportModule("numpy.core._internal"); - if (_numpy_internal != NULL) return; + if (_numpy_internal == NULL) { + _numpy_internal = PyImport_ImportModule("numpy.core._internal"); + if (_numpy_internal != NULL) return; + } err: if (!PyErr_Occurred()) { -- cgit v1.2.1