test.py
Go to the documentation of this file.
00001 #! /usr/bin/env python
00002 
00003 """
00004 usage: %(progname)s [args]
00005 """
00006 
00007 
00008 import os, sys, string, time, getopt
00009 from log import *
00010 
00011 import odb
00012 import odb_sqlite3
00013 
00014 
00015 def test(name, email):
00016   print dir()
00017   
00018 
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   test("scott", "hassan@dotfunk.com")
00039 
00040 
00041 if __name__ == "__main__":
00042   main(sys.argv, sys.stdout, os.environ)


pyclearsilver
Author(s): Scott Hassan/hassan@willowgarage.com
autogenerated on Wed Apr 23 2014 10:35:42