python-libburn now imports successfully
This commit is contained in:
parent
ccf0b07927
commit
cead9a6032
@ -3069,10 +3069,10 @@ PyTypeObject PyBurnBurn_toc_entry_Type = {
|
|||||||
|
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
initburn_burn(void)
|
initpyburn_burn(void)
|
||||||
{
|
{
|
||||||
PyObject *m;
|
PyObject *m;
|
||||||
m = Py_InitModule3((char *) "burn.burn", burn_burn_functions, NULL);
|
m = Py_InitModule3((char *) "pyburn.burn", burn_burn_functions, NULL);
|
||||||
if (m == NULL) {
|
if (m == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -3156,26 +3156,27 @@ static PyObject *
|
|||||||
initburn_std(void)
|
initburn_std(void)
|
||||||
{
|
{
|
||||||
PyObject *m;
|
PyObject *m;
|
||||||
m = Py_InitModule3((char *) "burn.std", burn_std_functions, NULL);
|
m = Py_InitModule3((char *) "pyburn.std", burn_std_functions, NULL);
|
||||||
if (m == NULL) {
|
if (m == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
return m;
|
return m;
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyMethodDef burn_functions[] = {
|
static PyMethodDef burn_functions[] = {
|
||||||
{NULL, NULL, 0, NULL}
|
{NULL, NULL, 0, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
PyMODINIT_FUNC
|
PyMODINIT_FUNC
|
||||||
initburn(void)
|
initpyburn(void)
|
||||||
{
|
{
|
||||||
PyObject *m;
|
PyObject *m;
|
||||||
PyObject *submodule;
|
PyObject *submodule;
|
||||||
m = Py_InitModule3((char *) "burn", burn_functions, NULL);
|
m = Py_InitModule3((char *) "pyburn", burn_functions, NULL);
|
||||||
if (m == NULL) {
|
if (m == NULL) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
submodule = initburn_burn();
|
submodule = initpyburn_burn();
|
||||||
if (submodule == NULL) {
|
if (submodule == NULL) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user