11 import os, sys, string, time, getopt
14 import roslib; roslib.load_manifest(PKG)
16 from webui
import webutil
18 import roslib.scriptutil
28 print __doc__ % vars()
30 def main(argv, stdout, environ):
32 optlist, args = getopt.getopt(argv[1:],
"", [
"help",
"test",
"debug"])
38 for (field, val)
in optlist:
42 elif field ==
"--debug":
44 elif field ==
"--test":
51 db = db_webui.initSchema()
57 apps = db.apps.listApps()
60 elif cmd ==
"install":
62 db.apps.installAppWithPath(taskid)
65 db.apps.removeApp(taskid)
66 elif cmd ==
"listall":
67 apps = webutil.list_apps()
71 if __name__ ==
"__main__":
72 main(sys.argv, sys.stdout, os.environ)
def main(argv, stdout, environ)