diff makeitso/python.py @ 244:fb70a9c72ec2

and this is why tests are so useful :/
author Jeff Hammel <k0scist@gmail.com>
date Mon, 20 Feb 2017 10:10:21 -0800
parents 5cb893831f53
children 407dd46857e1
line wrap: on
line diff
--- a/makeitso/python.py	Sun Feb 19 17:47:03 2017 -0800
+++ b/makeitso/python.py	Mon Feb 20 10:10:21 2017 -0800
@@ -77,8 +77,8 @@
         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']))
+        shutil.move(os.path.join(output, '{{main}}.py'),
+                    os.path.join(output, '{}.py'.format(variables['main']))
 
 class PythonPackageTemplate(PythonTemplate):
     """