From: oetiker Date: Sat, 27 May 2006 05:44:15 +0000 (+0000) Subject: python uses the name of the module for loding, so this should better match up --... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9c54d72bfe8dc13abeb660250f94a13afd8e89de;p=rrdtool-all.git python uses the name of the module for loding, so this should better match up -- Duncan Webb duncan dwebb ch git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@839 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/bindings/python/rrdtoolmodule.c b/program/bindings/python/rrdtoolmodule.c index 13f5d621..f5a96d95 100644 --- a/program/bindings/python/rrdtoolmodule.c +++ b/program/bindings/python/rrdtoolmodule.c @@ -48,7 +48,8 @@ extern int optind; extern int opterr; /* forward declaration to keep compiler happy */ -void initrrdtool(void); +/*void initrrdtool(void);*/ +void initrrdtoolmodule(void); static int create_args(char *command, PyObject *args, int *argc, char ***argv) @@ -492,18 +493,19 @@ static PyMethodDef _rrdtool_methods[] = { /* Initialization function for the module */ void -initrrdtool(void) +/*initrrdtool(void)*/ +initrrdtoolmodule(void) { PyObject *m, *d, *t; /* Create the module and add the functions */ - m = Py_InitModule("rrdtool", _rrdtool_methods); + m = Py_InitModule("rrdtoolmodule", _rrdtool_methods); /* Add some symbolic constants to the module */ d = PyModule_GetDict(m); SET_STRCONSTANT(d, __version__); - ErrorObject = PyErr_NewException("_rrdtool.error", NULL, NULL); + ErrorObject = PyErr_NewException("rrdtoolmodule.error", NULL, NULL); PyDict_SetItemString(d, "error", ErrorObject); /* Check for errors */