annotate kplot/template.py @ 0:48d0f28311a3

init
author Jeff Hammel <k0scist@gmail.com>
date Thu, 14 Aug 2014 16:26:16 -0700
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 #!/usr/bin/env python
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3 """
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4 kplot template for makeitso
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 """
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
7 import sys
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
8 from cli import MakeItSoCLI
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
9 from optparse import OptionParser
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
10 from template import MakeItSoTemplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
11
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
12 class kplotTemplate(MakeItSoTemplate):
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
13 """
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
14 kplot template
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
15 """
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
16 name = 'kplot'
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
17 templates = ['template']
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
18 look = True
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
19
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
20 class TemplateCLI(MakeItSoCLI):
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
21 """
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
22 CLI driver for the kplot template
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
23 """
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
24
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
25 def main(args=sys.argv[:]):
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
26 cli = TemplateCLI()
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
27 cli(*args)
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
28
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
29 if __name__ == '__main__':
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
30 main()
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
31
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
32