Skip to content

Commit 989b790

Browse files
committed by mistake, so revert name change again
1 parent 1afca62 commit 989b790

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

SRC/interpreter/PythonModule.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ static int opensees_clear(PyObject *m) {
497497

498498
static struct PyModuleDef moduledef = {
499499
PyModuleDef_HEAD_INIT,
500-
"OpenSeesPy",
500+
"opensees",
501501
NULL,
502502
sizeof(struct module_state),
503503
getmethodsFunc(),
@@ -510,28 +510,28 @@ static struct PyModuleDef moduledef = {
510510
#define INITERROR return NULL
511511

512512
PyMODINIT_FUNC
513-
PyInit_OpenSeesPy(void)
513+
PyInit_opensees(void)
514514

515515
#else
516516
#define INITERROR return
517517

518518
//void
519519
PyMODINIT_FUNC
520-
initopenseespy(void)
520+
initopensees(void)
521521
#endif
522522
{
523523
#if PY_MAJOR_VERSION >= 3
524524
PyObject *pymodule = PyModule_Create(&moduledef);
525525
#else
526-
PyObject *pymodule = Py_InitModule("OpenSeesPy", getmethodsFunc());
526+
PyObject *pymodule = Py_InitModule("opensees", getmethodsFunc());
527527
#endif
528528

529529
if (pymodule == NULL)
530530
INITERROR;
531531
struct module_state *st = GETSTATE(pymodule);
532532

533533
// add OpenSeesError
534-
st->error = PyErr_NewExceptionWithDoc("OpenSeesPy.OpenSeesError", "Internal OpenSees errors.", NULL, NULL);
534+
st->error = PyErr_NewExceptionWithDoc("opensees.OpenSeesError", "Internal OpenSees errors.", NULL, NULL);
535535
if (st->error == NULL) {
536536
Py_DECREF(pymodule);
537537
INITERROR;

0 commit comments

Comments
 (0)