# HG changeset patch # User Jeff Hammel # Date 1383266319 25200 # Node ID 54f42aa651bc55a659aa5844839b4a621c5a9d14 # Parent f6474c7dfb397c2ecd178983fa97671053cdade4 fix single module interpolation diff -r f6474c7dfb39 -r 54f42aa651bc makeitso/python.py --- 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): """ diff -r f6474c7dfb39 -r 54f42aa651bc setup.py --- a/setup.py Sun Oct 20 03:54:54 2013 -0700 +++ b/setup.py Thu Oct 31 17:38:39 2013 -0700 @@ -7,7 +7,7 @@ except IOError: description = '' -version = '0.2.6' +version = '0.2.7' setup(name='MakeItSo', version=version,