I run web2py as a Windows Service.
And I want that when the service starts (and only then) a Python script 
deletes a control file inside c:\web2py.
I saw the -R command line option, but that only works with a web2py shell.

What I need is something similar to Python's env var PYTHONSTARTUP.


quinta-feira, 21 de Março de 2019 às 21:09:09 UTC, Leonel Câmara escreveu:
>
> What does it even mean run only once when web2py starts? Web2py can be 
> running in multiple processes and in multiple threads. The answer totally 
> depends on what you're trying to do and how you run web2py.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to