Is it possible to use pyGTK and Monkeyrunner in same script?
Question: I started with importing GTK, and monkeyrunner:

    
    
    from com.android.monkeyrunner import MonkeyRunner
    import gtk
    ...
    

when I run this with monkeyrunner in the SDK tools, it says `ImportError: No
module named gtk`. When I run this with Python, it says `ImportError: No
module named com.android.monkeyrunner`.

Is there any way to set up a program that uses both modules?


Answer: MonkeyRunner is built with Jython and it only has a small subset of the
standard modules compiled in. If you would like to use MonkeyRunner with other
python packages then you will need to use os.system or something like that in
your MonkeyRunner program to call a separate python instance.

