changeset 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 ba7dd9820181
children 2eb0a8dc2303
files makeitso/python.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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):
     """