From c7b441602feb5573619e1ba4536b4dce4878a803 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 1 Apr 2011 10:19:44 +0100 Subject: [PATCH] More PYCONSOLE macros --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.c b/src/main.c index d02780bdf..4c8ed4f89 100644 --- a/src/main.c +++ b/src/main.c @@ -3792,11 +3792,14 @@ int main(int argc, char *argv[]) SDL_CloseAudio(); http_done(); +#ifdef PYCONSOLE + PyRun_SimpleString("import os,tempfile,os.path\ntry:\n os.remove(os.path.join(tempfile.gettempdir(),'tpt_console.py'))\nexcept:\n pass"); PyRun_SimpleString("import os,tempfile,os.path\ntry:\n os.remove(os.path.join(tempfile.gettempdir(),'tpt_console.pyo'))\nexcept:\n pass"); PyRun_SimpleString("import os,tempfile,os.path\ntry:\n os.remove(os.path.join(tempfile.gettempdir(),'tpt_console.pyc'))\nexcept:\n pass"); Py_Finalize();//cleanup any python stuff. +#endif return 0; } #ifdef PYCONSOLE