diff options
| author | Simon <simon@hardwired.org.uk> | 2011-03-10 18:30:28 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2011-03-10 18:30:28 (GMT) |
| commit | 2339084d15d72fdfc140ae4174936a64a6f02798 (patch) | |
| tree | 82234554d4554148f4b12bcb002fc7e0d8481941 /src | |
| parent | 4942cc14b0ca305689a176477bd8476556297a89 (diff) | |
| download | powder-2339084d15d72fdfc140ae4174936a64a6f02798.zip powder-2339084d15d72fdfc140ae4174936a64a6f02798.tar.gz | |
Remove some redundant code
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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 { |
