# HG changeset patch # User Jeff Hammel # Date 1487614221 28800 # Node ID fb70a9c72ec2b998761dae3b10bebc5fdd3b55a2 # Parent ba7dd9820181d820d05cdddbd94c7d6cd641112c and this is why tests are so useful :/ diff -r ba7dd9820181 -r fb70a9c72ec2 makeitso/python.py --- 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): """