comparison 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
comparison
equal deleted inserted replaced
243:ba7dd9820181 244:fb70a9c72ec2
75 75
76 def pre(self, variables, output): 76 def pre(self, variables, output):
77 variables['project'] = variables['module'] = variables['main'] = self.output2name(output) 77 variables['project'] = variables['module'] = variables['main'] = self.output2name(output)
78 78
79 def post(self, variables, output): 79 def post(self, variables, output):
80 shutil.move(os.path.join(output, '{{main.py}}'), 80 shutil.move(os.path.join(output, '{{main}}.py'),
81 os.path.join(output, variables['main'])) 81 os.path.join(output, '{}.py'.format(variables['main']))
82 82
83 class PythonPackageTemplate(PythonTemplate): 83 class PythonPackageTemplate(PythonTemplate):
84 """ 84 """
85 python package template 85 python package template
86 """ 86 """