summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLieuwe <lieuwemo@gmail.com>2011-03-15 19:09:23 (GMT)
committer Lieuwe <lieuwemo@gmail.com>2011-03-15 19:09:23 (GMT)
commitfe5e4a6ddcdfcf501521be38ce7dba073dbfcb2a (patch)
tree166e5bd982163804503b412cc988893605aaffe6 /src
parent34051303cf888f7bd815f0686df9462bbf037d6d (diff)
downloadpowder-fe5e4a6ddcdfcf501521be38ce7dba073dbfcb2a.zip
powder-fe5e4a6ddcdfcf501521be38ce7dba073dbfcb2a.tar.gz
64bit really fixed now, does need PYEXT to be defined tho.
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index f42a020..15abdde 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3652,6 +3652,10 @@ int main(int argc, char *argv[])
}
SDL_CloseAudio();
http_done();
+ 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.
return 0;
}