Mercurial > hg > MakeItSo
diff makeitso/python.py @ 168:54f42aa651bc
fix single module interpolation
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 31 Oct 2013 17:38:39 -0700 |
parents | 0c95d7f25d9b |
children | c3f719824948 |
line wrap: on
line diff
--- a/makeitso/python.py Sun Oct 20 03:54:54 2013 -0700 +++ b/makeitso/python.py Thu Oct 31 17:38:39 2013 -0700 @@ -19,6 +19,7 @@ # TODO: console_scripts for all of these import os +import shutil import sys from cli import MakeItSoCLI from makeitso import ContentTemplate @@ -57,6 +58,9 @@ def pre(self, variables, output): variables['project'] = variables['module'] = variables['main'] = self.output2name(output) + def post(self, variables, output): + shutil.move(os.path.join(output, '{{main.py}}'), + os.path.join(output, variables['main'])) class PythonPackageTemplate(PythonTemplate): """