Trying to run simple monkeyrunner python script, 'importerror no module named os'

后端 未结 4 2020
轮回少年
轮回少年 2021-01-15 13:16

I have the android emulator/SDK installed on my computer, and I\'m trying to run a simple python script, but it fails on the \'import os\' line (which should be standard!)

4条回答
  •  [愿得一人]
    2021-01-15 13:55

    all by itself in the jython interpreter

    If you're using the jython packaged with the Android SDK, it doesn't include an 'os' module by default. You'll need to grab one, and put it in there, or use another interpreter.

提交回复
热议问题