Pythonista 3 runs Pythonista 2 startup script
-
I just noticed that: When I launch Pythonista 3, the
pythonista_startup.py
file in the Pythonista 2site-packages
folder will be executed.Is there a reason for that?
I've done some tests:
- Pythonista 2 runs only the its own
pythonista_startup
file - Pythonista 3 first runs its own
pythonista_startup
file, then the one in the Pythonista 2site-packages
folder
- Pythonista 2 runs only the its own
-
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 fromDocuments/site-packages
instead ofPythonista3/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 twosite-packages
folders for the two Python versions.Pythonista 2 has no support for Python 3, so it only loads the Python 2 runtime.