#811: detect correct python binary in start-<project>.py
----------------------------------+-----------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  anonymous
     Type:  defect                |       Status:  new      
 Priority:  normal                |    Milestone:           
Component:  TurboGears            |      Version:  0.9a5    
 Severity:  normal                |   Resolution:           
 Keywords:                        |  
----------------------------------+-----------------------------------------
Comment (by Matt Good <[EMAIL PROTECTED]>):

 This is relatively straightforward:

 {{{
 #!diff
 Index: turbogears/qstemplates/quickstart/start-+package+.py_tmpl
 ===================================================================
 --- turbogears/qstemplates/quickstart/start-+package+.py_tmpl   (revision
 1465)
 +++ turbogears/qstemplates/quickstart/start-+package+.py_tmpl   (working
 copy)
 @@ -1,4 +1,4 @@
 -#!/usr/bin/env python
 +#!${sys_executable}
  import pkg_resources
  pkg_resources.require("TurboGears")

 Index: turbogears/command/quickstart.py
 ===================================================================
 --- turbogears/command/quickstart.py    (revision 1465)
 +++ turbogears/command/quickstart.py    (working copy)
 @@ -22,6 +22,7 @@
          vars.setdefault('einame', vars['project'].replace('-', '_'))
          vars.setdefault('turbogearsversion',
                  pkg_resources.get_distribution('turbogears').version)
 +        vars.setdefault('sys_executable',
 os.path.normpath(sys.executable))
          super(TGTemplate, self).run(command, output_dirs, vars)

  class BaseTemplate(TGTemplate):
 }}}

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/811>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to