How long will a pythonista script run for before shutting down?
I'm new to both python and pythonista and I'm wondering how long a script will run before it shuts down? Will a script shut down even when actively being used or only when run in the background.
A script runs until the end, if pythonista is in the foreground.
It will pause when the device sleeps, but you can turn that off:
console.set_idle_timer_disabled(flag) Disable or enable the idle timer (which puts the device to sleep after a certain period of inactivity).
In the background, you get 10 minutes.
You could also try NoDoze: http://omz-forums.appspot.com/pythonista/post/5988988296888320