Mercurial > hg > MakeItSo
changeset 66:7821c82772f5
determine the location in a better way
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 07 Jan 2011 10:53:12 -0800 |
parents | 0152741621c1 |
children | a0f7bfa98755 |
files | makeitso/template.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/makeitso/template.py Fri Jan 07 10:17:48 2011 -0800 +++ b/makeitso/template.py Fri Jan 07 10:53:12 2011 -0800 @@ -78,7 +78,8 @@ variables = variables or {} self.output = output self.interactive = interactive - self.location = os.path.dirname(os.path.abspath(__file__)) + _file = sys.modules[self.__class__.__module__].__file__ + self.location = os.path.dirname(os.path.abspath(_file)) self.defaults = variables.copy() self.usedefaults = usedefaults