Forum Archive

pythonista-startup in application lifecycle

lukaskollmer

Just a simple question: does anyone know when pythonista-startup is called in the application lifecycle?

I'm trying to swizzle some application launch calls to app delegate but I don't know at what point in the launch process the startup file is actually executed.

@omz

dgelessus

pythonista_startup is imported like a normal module, so it runs at some point after the Python interpreter has started up. By that point the app is already running as far as I can tell.

omz

pythonista_startup is executed at some point after the app has launched, it is not tied to a particular point in the UIApplication lifecycle (and runs on a different thread).