# HG changeset patch # User Jeff Hammel # Date 1294426392 28800 # Node ID 7821c82772f577ea3ec0ad76f4df555679d4c7da # Parent 0152741621c1f5b12abe0fbbb8645cdb66f4c9c9 determine the location in a better way diff -r 0152741621c1 -r 7821c82772f5 makeitso/template.py --- 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