Go to the documentation of this file.00001
00002
00003 """
00004 usage: %(progname)s
00005 """
00006
00007
00008 import os, sys, string, time, getopt
00009
00010 PKG = 'webui'
00011 import roslib; roslib.load_manifest(PKG)
00012
00013 from pyclearsilver.log import *
00014
00015 import db_webui
00016
00017 def test():
00018 pass
00019
00020 def usage(progname):
00021 print __doc__ % vars()
00022
00023 def main(argv, stdout, environ):
00024 progname = argv[0]
00025 optlist, args = getopt.getopt(argv[1:], "", ["help", "test", "debug"])
00026
00027 testflag = 0
00028
00029 for (field, val) in optlist:
00030 if field == "--help":
00031 usage(progname)
00032 return
00033 elif field == "--debug":
00034 debugfull()
00035 elif field == "--test":
00036 testflag = 1
00037
00038 if testflag:
00039 test()
00040 return
00041
00042 db = db_webui.initSchema(create=1)
00043
00044 if __name__ == "__main__":
00045 main(sys.argv, sys.stdout, os.environ)