mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +02:00
More PYCONSOLE macros
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user