omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    pythonista-startup in application lifecycle

    Pythonista
    3
    3
    2119
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • lukaskollmer
      lukaskollmer last edited by

      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

      1 Reply Last reply Reply Quote 0
      • dgelessus
        dgelessus last edited by

        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.

        1 Reply Last reply Reply Quote 1
        • omz
          omz last edited by

          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).

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Powered by NodeBB Forums | Contributors