MCPcopy Create free account
hub / github.com/LibreCAD/LibreCAD / init_pyextension

Function init_pyextension

librecad/src/lib/scripting/rs_simplepython.cpp:158–163  ·  view source on GitHub ↗

* Python will call this when the librecad module is imported. */

Source from the content-addressed store, hash-verified

156 * Python will call this when the librecad module is imported.
157 */
158void init_pyextension() {
159 printf("c: adding module: librecad\n");
160 PyImport_AddModule("librecad");
161 Py_InitModule("librecad", rsLibreCADMethods);
162 printf("c: module librecad: OK\n");
163}
164
165#endif

Callers 1

launchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected