Changeset 839


Ignore:
Timestamp:
05/27/06 07:44:15 (6 years ago)
Author:
oetiker
Message:

python uses the name of the module for loding, so this should better match up -- Duncan Webb duncan dwebb ch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/program/bindings/python/rrdtoolmodule.c

    r545 r839  
    4949 
    5050/* forward declaration to keep compiler happy */ 
    51 void initrrdtool(void); 
     51/*void initrrdtool(void);*/ 
     52void initrrdtoolmodule(void); 
    5253 
    5354static int 
     
    493494/* Initialization function for the module */ 
    494495void 
    495 initrrdtool(void) 
     496/*initrrdtool(void)*/ 
     497initrrdtoolmodule(void) 
    496498{ 
    497499    PyObject    *m, *d, *t; 
    498500 
    499501    /* Create the module and add the functions */ 
    500     m = Py_InitModule("rrdtool", _rrdtool_methods); 
     502    m = Py_InitModule("rrdtoolmodule", _rrdtool_methods); 
    501503 
    502504    /* Add some symbolic constants to the module */ 
     
    504506 
    505507    SET_STRCONSTANT(d, __version__); 
    506     ErrorObject = PyErr_NewException("_rrdtool.error", NULL, NULL); 
     508    ErrorObject = PyErr_NewException("rrdtoolmodule.error", NULL, NULL); 
    507509    PyDict_SetItemString(d, "error", ErrorObject); 
    508510 
Note: See TracChangeset for help on using the changeset viewer.

NOTE: The content of this website is accessible with any browser. The graphical design though relies completely on CSS2 styles. If you see this text, this means that your browser does not support CSS2. Consider upgrading to a standard conformant browser like Mozilla Firefox or Opera but also Apple's Safari or KDE's Konqueror for example. It may also be that you are looking at a mirror page which did not copy the CSS for this page. Or if some pictu res are missing, then the mirror may not have picked up the contents of the inc directory.