I am having a bit of difficulty importing a seemingly existing module: simplejson into my MonkeyRunner script.
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
import simplejson
def main():
print "this is a test"
if __name__ == "__main__":
main()
ImportError: No module named simplejson
As I understand it, MonkeyRunner uses Jython 2.5, based on Python 2.5?. I know that the JSON module came in Python 2.7, but I have installed simplejson for Python 2.5 under '/Library/Python/2.5/site-packages/simplejson-2.3.2-py2.5-macosx-10.7-x86_64.egg'
My question is, how do I properly get simplejson modules imported into a MonkeyRunner script?