test.py
Go to the documentation of this file.
1 #! /usr/bin/env python
2 
3 """
4 usage: %(progname)s [args]
5 """
6 
7 
8 import os, sys, string, time, getopt
9 from log import *
10 
11 import odb
12 import odb_sqlite3
13 
14 
15 def test(name, email):
16  print dir()
17 
18 
19 
20 def usage(progname):
21  print __doc__ % vars()
22 
23 def main(argv, stdout, environ):
24  progname = argv[0]
25  optlist, args = getopt.getopt(argv[1:], "", ["help", "test", "debug"])
26 
27  testflag = 0
28 
29  for (field, val) in optlist:
30  if field == "--help":
31  usage(progname)
32  return
33  elif field == "--debug":
34  debugfull()
35  elif field == "--test":
36  testflag = 1
37 
38  test("scott", "hassan@dotfunk.com")
39 
40 
41 if __name__ == "__main__":
42  main(sys.argv, sys.stdout, os.environ)
def usage(progname)
Definition: test.py:20
def test(name, email)
Definition: test.py:15
def debugfull()
Definition: log.py:120
def main(argv, stdout, environ)
Definition: test.py:23


pyclearsilver
Author(s): Scott Noob Hassan
autogenerated on Mon Jun 10 2019 15:51:13