changeset 162:1a419ebe0fe5

sdad
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 30 Jul 2013 15:43:43 -0700
parents a5d058957734
children 197e7b523a07
files makeitso/python.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/makeitso/python.py	Tue Jul 30 15:36:24 2013 -0700
+++ b/makeitso/python.py	Tue Jul 30 15:43:43 2013 -0700
@@ -36,11 +36,13 @@
   def output2name(self, path):
     return os.path.splitext(os.path.basename(path.rstrip(os.path.sep)))[0]
 
+
 class PythonScriptTemplate(PythonTemplate):
   """template for a single python script"""
   templates = [('python_package', '{{package}}', '{{main}}.py')]
   vars = [Variable('description')]
 
+
 class PythonModuleTemplate(PythonTemplate):
   """single module python package"""
   # TODO: this should use the same files as PythonPackageTemplate
@@ -50,7 +52,8 @@
   look = False
 
   def pre(self, variables, output):
-    variables['module'] = variables['main'] = self.output2name(output)
+    variables['project'] = variables['module'] = variables['main'] = self.output2name(output)
+
 
 class PythonPackageTemplate(PythonTemplate):
   """