* Python will call this when the librecad module is imported. */
| 156 | * Python will call this when the librecad module is imported. |
| 157 | */ |
| 158 | void 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 |