diff --git a/src/python/PyImath/imathmodule.cpp b/src/python/PyImath/imathmodule.cpp index d05e27e4..d50fef13 100644 --- a/src/python/PyImath/imathmodule.cpp +++ b/src/python/PyImath/imathmodule.cpp @@ -134,7 +134,8 @@ FixedArray2D rangeY(int sizeX, int sizeY) BOOST_PYTHON_MODULE(imath) { - + scope().attr("__version__") = IMATH_VERSION_STRING; + register_basicTypes(); class_ iclass2D = IntArray2D::register_("IntArray2D","Fixed length array of ints"); diff --git a/src/python/PyImathNumpy/imathnumpymodule.cpp b/src/python/PyImathNumpy/imathnumpymodule.cpp index 0b11bc7a..9f8d374a 100644 --- a/src/python/PyImathNumpy/imathnumpymodule.cpp +++ b/src/python/PyImathNumpy/imathnumpymodule.cpp @@ -113,6 +113,8 @@ static void *apply_import() #endif BOOST_PYTHON_MODULE(imathnumpy) { + scope().attr("__version__") = IMATH_VERSION_STRING; + handle<> imath(PyImport_ImportModule("imath")); if (PyErr_Occurred()) throw_error_already_set(); scope().attr("imath") = imath;