Initialize module

This commit is contained in:
Vincent Castellano 2015-05-02 05:03:13 -07:00
parent e0c739148b
commit 1b2fb1e1fe

View File

@ -1440,11 +1440,12 @@ void py_init (const char *file) {
if (!file) { return; } if (!file) { return; }
have_file = 1; have_file = 1;
// PyObject *pName;//, *pModule; PyObject *pName, *pModule;
Py_Initialize(); Py_Initialize();
// pName = PyFile_FromFile(file, "telegram.py", 'r', null); pName = PyString_FromString(file);
pModule = PyImport_Import(pName);
// PyObject* err = PyErr_Occurred(); // PyObject* err = PyErr_Occurred();
// if (err != NULL) { // if (err != NULL) {