/*************************************************************************** * Copyright (c) 2007 * * Joachim Zettler * * Jürgen Riegel #endif #include #include extern struct PyMethodDef Cam_methods[]; PyDoc_STRVAR(module_part_doc, "This module is the playground for the CAM stuff."); extern "C" { void CamExport initCam() { // load dependend module try { Base::Interpreter().loadModule("Part"); Base::Interpreter().loadModule("Mesh"); } catch(const Base::Exception& e) { PyErr_SetString(PyExc_ImportError, e.what()); return; } Py_InitModule3("Cam", Cam_methods, module_part_doc); /* mod name, table ptr */ Base::Console().Log("Loading Cam module... done\n"); // NOTE: To finish the initialization of our own type objects we must // call PyType_Ready, otherwise we run into a segmentation fault, later on. // This function is responsible for adding inherited slots from a type's base class. return; } } // extern "C"