diff options
author | Travis Oliphant <oliphant@enthought.com> | 2007-05-17 07:23:17 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2007-05-17 07:23:17 +0000 |
commit | fadee7a84dbbee56f364bf7140e3752a28d1617b (patch) | |
tree | 45b503b769b68cbaa5ad6e7361d7b4f4382b9469 /numpy/core/src | |
parent | 07b1228e1e45d8f4d4e6c74520cc6106515638ba (diff) | |
download | numpy-fadee7a84dbbee56f364bf7140e3752a28d1617b.tar.gz |
Perhaps fix the problem with multiarray_module_loaded.
Diffstat (limited to 'numpy/core/src')
-rw-r--r-- | numpy/core/src/multiarraymodule.c | 7 |
1 files changed, 4 insertions, 3 deletions
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()) { |