comparison makeitso/template.py @ 70:cb00c011ff45

why do we care if they have templates or not?
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 07 Jan 2011 16:31:28 -0800
parents a75138a952d0
children 95d1bb85ab3c
comparison
equal deleted inserted replaced
69:a75138a952d0 70:cb00c011ff45
72 - interactive : whether tointeractively get variables 72 - interactive : whether tointeractively get variables
73 - usedefaults : try to use the default values if not specified 73 - usedefaults : try to use the default values if not specified
74 """ 74 """
75 75
76 # boilerplate 76 # boilerplate
77 assert self.templates
78 variables = variables or {} 77 variables = variables or {}
79 self.output = output 78 self.output = output
80 self.interactive = interactive 79 self.interactive = interactive
81 _file = sys.modules[self.__class__.__module__].__file__ 80 _file = sys.modules[self.__class__.__module__].__file__
82 self.location = os.path.dirname(os.path.abspath(_file)) 81 self.location = os.path.dirname(os.path.abspath(_file))