Commit 2a99ce59 authored by Vincent Castellano's avatar Vincent Castellano

Initialize module

parent 0bf99796
......@@ -1440,11 +1440,12 @@ void py_init (const char *file) {
if (!file) { return; }
have_file = 1;
// PyObject *pName;//, *pModule;
PyObject *pName, *pModule;
Py_Initialize();
// pName = PyFile_FromFile(file, "telegram.py", 'r', null);
pName = PyString_FromString(file);
pModule = PyImport_Import(pName);
// PyObject* err = PyErr_Occurred();
// if (err != NULL) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment