Mercurial > hg > MakeItSo
comparison makeitso/python.py @ 248:407dd46857e1
fix syntax error in python.py + version bump
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Fri, 31 Mar 2017 18:05:28 -0700 |
parents | fb70a9c72ec2 |
children |
comparison
equal
deleted
inserted
replaced
247:43db853df1f8 | 248:407dd46857e1 |
---|---|
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, '{}.py'.format(variables['main'])) | 81 os.path.join(output, '{}.py'.format(variables['main']))) |
82 | |
82 | 83 |
83 class PythonPackageTemplate(PythonTemplate): | 84 class PythonPackageTemplate(PythonTemplate): |
84 """ | 85 """ |
85 python package template | 86 python package template |
86 """ | 87 """ |