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 3 runs Pythonista 2 startup script

    Pythonista
    startup-script
    2
    2
    1938
    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

      I just noticed that: When I launch Pythonista 3, the pythonista_startup.py file in the Pythonista 2 site-packages folder will be executed.

      Is there a reason for that?

      I've done some tests:

      • Pythonista 2 runs only the its ownpythonista_startup file
      • Pythonista 3 first runs its ownpythonista_startup file, then the one in the Pythonista 2 site-packages folder
      1 Reply Last reply Reply Quote 0
      • dgelessus
        dgelessus last edited by

        As far as I can tell, Pythonista 3 loads both Python runtimes at startup. The Python 2 runtime (PythonistaKit.framework) is probably the same as the one used by Pythonista 2, so it imports modules from Documents/site-packages instead of Pythonista3/Documents/site-packages. This isn't an optimal solution (the Pythonista 3 UI treats the Pythonista 2 folder as read-only), and a few people have suggested that there should be two site-packages folders for the two Python versions.

        Pythonista 2 has no support for Python 3, so it only loads the Python 2 runtime.

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