At irregular intervals I need to cleanup files written by my
application for users. In the documentation it was suggested that one
of the possibilities is to launch a script to do this. I'm doing the
following from my controller and it works fine:

os.spawnl(os.P_NOWAIT, r'C:\Python25\python.exe', 'python',
'clean_up.py '+the_path);


Is there a way I can do the same and use Web2Py's Python interpreter?

thanks in advance for any advice, James

Reply via email to