changeset 178:d6ef91d49609

hopefully do away with some extra variable reentry
author Jeff Hammel <k0scist@gmail.com>
date Sun, 02 Mar 2014 18:45:20 -0800
parents c3f719824948
children 5bd1c50c6f61
files makeitso/python.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/makeitso/python.py	Fri Jan 24 11:03:05 2014 -0800
+++ b/makeitso/python.py	Sun Mar 02 18:45:20 2014 -0800
@@ -122,7 +122,9 @@
       script_strings = ['[console_scripts]']
       for console_script in console_scripts:
         template = ContentTemplate(console_script)
-        output = template.substitute(project=variables['project'])
+        output = template.substitute(project=variables['project'],
+                                     package=variables['package'],
+                                     main=variables['main'])
         script_strings.append(output)
       variables['console_scripts'] = '\n'.join([' ' * len(s) + i
                                                 for i in script_strings])