Mercurial > hg > MakeItSo
view makeitso/python_package/{{package}}/template.py @ 245:2eb0a8dc2303
python 3.5
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 20 Feb 2017 10:13:32 -0800 |
parents | ad5fd3eb6674 |
children |
line wrap: on
line source
#!/usr/bin/env python """ {{project}} template for makeitso """ import sys from cli import MakeItSoCLI from optparse import OptionParser from template import MakeItSoTemplate class {{project}}Template(MakeItSoTemplate): """ {{project}} template """ name = '{{project}}' templates = ['template'] look = True class TemplateCLI(MakeItSoCLI): """ CLI driver for the {{project}} template """ def main(args=sys.argv[:]): cli = TemplateCLI() cli(*args) if __name__ == '__main__': main()