what do you mean by web2py's python interpreter?

web2py do not have its own intepreter. it runs on Python interpreter.

You will like to look for web2py's built-in cron documentation.

And do not use old/depreciated os.spawn if its possible to upgrade your
python to 2.7 , use subprocess.Popen

On Tue, Mar 6, 2012 at 6:17 AM, james c. <[email protected]> wrote:

> 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