summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2011-04-01 09:19:44 (GMT)
committer Simon <simon@hardwired.org.uk>2011-04-01 09:19:44 (GMT)
commitc7b441602feb5573619e1ba4536b4dce4878a803 (patch)
treec5bc24527e3ed126362672484484aaf3bd27d7b7 /src
parent2f6bc8fe8078030ca4bf7a087920f3329862b650 (diff)
downloadpowder-c7b441602feb5573619e1ba4536b4dce4878a803.zip
powder-c7b441602feb5573619e1ba4536b4dce4878a803.tar.gz
More PYCONSOLE macros
Diffstat (limited to 'src')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index d02780b..4c8ed4f 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