diff options
| author | Simon <simon@hardwired.org.uk> | 2011-04-01 09:19:44 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2011-04-01 09:19:44 (GMT) |
| commit | c7b441602feb5573619e1ba4536b4dce4878a803 (patch) | |
| tree | c5bc24527e3ed126362672484484aaf3bd27d7b7 /src | |
| parent | 2f6bc8fe8078030ca4bf7a087920f3329862b650 (diff) | |
| download | powder-c7b441602feb5573619e1ba4536b4dce4878a803.zip powder-c7b441602feb5573619e1ba4536b4dce4878a803.tar.gz | |
More PYCONSOLE macros
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |
