From 2339084d15d72fdfc140ae4174936a64a6f02798 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 10 Mar 2011 18:30:28 +0000 Subject: [PATCH] Remove some redundant code --- src/main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main.c b/src/main.c index 9979fb68a..2323b9794 100644 --- a/src/main.c +++ b/src/main.c @@ -1973,13 +1973,10 @@ int main(int argc, char *argv[]) PyRun_SimpleString("import sys\nsys.path.append('.')"); PyRun_SimpleString("print 'python present.'"); //load the console module and whatnot - //pname=PyString_FromString("tpt_console");//create string object - //pmodule = PyImport_Import(pname);//import module PyObject *tpt_console_obj = PyMarshal_ReadObjectFromString(tpt_console_pyc+8, sizeof(tpt_console_pyc)-8); pmodule=PyImport_ExecCodeModule("tpt_console", tpt_console_obj); if(pmodule!=NULL) { - //Py_DECREF(pname);//throw away the string object pfunc=PyObject_GetAttrString(pmodule,"handle");//get the handler function if(pfunc && PyCallable_Check(pfunc))//check if it's really a function {