Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
savehistory.py
from objc_util import UIApplication
with open('history.py','r') as f:
UIApplication.sharedApplication().keyWindow().rootViewController().accessoryViewController().consoleViewController().history= f.readlines()
from objc_util import UIApplication
with open('history.py','a') as f:
f.write( '\n'.join([str(h) for h in UIApplication.sharedApplication().keyWindow().rootViewController().accessoryViewController().consoleViewController().history()])+'\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment