哪里help.py为Android的monkeyrunner [英] Where is the help.py for Android's monkeyrunner
问题描述
我只是无法找到 help.py
文件,以便创造的API参考的 monkeyrunner
。在 Android的参考文献中描述
I just can't find the help.py
file in order to create the API reference for the monkeyrunner
. The command described at the Android references
monkeyrunner<格式> help.py< OUTFILE>
不,当我叫工作 monkeyrunner HTML help.py /path/to/place/the/doc.html
这是相当明显, help.py
文件不被发现和monkeyrunner还告诉我无法打开指定的脚本文件。但查找
我的系统上并没有给我有什么关系monkeyrunner或Android一个help.py文件。
It's quite obvious that the help.py
file is not found and the monkeyrunner also tells me "Can't open specified script file". But a locate
on my system doesn't bring me a help.py file that has anything to do with monkeyrunner or Android.
我的问题是:他们在哪里隐藏创建API参考help.py文件
So my question is: Where did they hide the help.py file for creating the API reference?
推荐答案
我找不到它的。但是,我们可以假设它是简单地调用MonkeyRunner.help()与传入的参数。如果你只是想要得到的东西快速使用这个剧本,我创建也叫 help.py
I cannot find it either. But one can assume that it is simply calling MonkeyRunner.help() with the passed in arguments. If you just want to get something quick use this script I created also named help.py:
#!/usr/bin/env python
# Imports the monkeyrunner modules used by this program
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
text = MonkeyRunner.help("html");
f = open('help.html', 'w')
f.write(text);
f.close();
运行它,就像任何其他的monkeyrunner脚本:
Run it just like any other monkeyrunner script:
$ monkeyrunner help.py
这篇关于哪里help.py为Android的monkeyrunner的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!