Mercurial > hg > MakeItSo
comparison makeitso/template.py @ 78:d4184945f8a8
stub out python package creation
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 08 Jan 2011 17:54:58 -0800 |
parents | ec35e5763b52 |
children | 712a6d358083 |
comparison
equal
deleted
inserted
replaced
77:059b02808efa | 78:d4184945f8a8 |
---|---|
94 """ | 94 """ |
95 | 95 |
96 # boilerplate | 96 # boilerplate |
97 variables = variables or {} | 97 variables = variables or {} |
98 self.output = output | 98 self.output = output |
99 if not self.description and hasattr(self, '__doc__'): | |
100 self.description = self.__doc__ | |
99 self.interactive = interactive | 101 self.interactive = interactive |
100 _file = sys.modules[self.__class__.__module__].__file__ | 102 _file = sys.modules[self.__class__.__module__].__file__ |
101 self.location = os.path.dirname(os.path.abspath(_file)) | 103 self.location = os.path.dirname(os.path.abspath(_file)) |
102 self.defaults = variables.copy() | 104 self.defaults = variables.copy() |
103 self.usedefaults = usedefaults | 105 self.usedefaults = usedefaults |