@domiriel , sorry I don't know the answer to your question. But just in case you didn't know, if you create a file called 'pythonista_startup.py' in the 'site-packages' dir, it will be executed when Pythonista starts up. Just when you get your answer this could be handy for you. My pythonista_startup.py looks like -
# coding: utf-8
import sys, os, console
print('my startup script\n')
from objc_util import *
UIScreen = ObjCClass('UIScreen')
from plistlib import readPlist
screen = UIScreen.mainScreen()
screen.setBrightness_(0.25)
UIView.beginAnimations_(None)
UIView.setAnimationDuration_(0)
print('switching off animations\n')
print('screen brightness:'.upper(), '{:f}'.format(screen.brightness()))
fnt = ('Menlo', 22)
console.set_font(*fnt)
print('Font set to {}-{}'.format(*fnt))
def pyst_version_str():
plist = readPlist(os.path.abspath(os.path.join(sys.executable, '..', 'Info.plist')))
return plist['CFBundleShortVersionString']
print(('Pythonista Version:{}'.format(pyst_version_str())))