Show
Ignore:
Timestamp:
07/09/08 16:10:31 (5 months ago)
Author:
rob
Message:

Added bangpathModificationHook to JobControlMixin?
* scripts are not run by directly executing them any more -- the bangpath line is parsed out and used as the command line
* python mode now adds '-u' to the bang path if it doesn't exist

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/peppy/plugins/python_mode.py

    r1317 r1478  
    234234 
    235235    autoindent = PythonAutoindent() 
     236     
     237    def bangpathModificationHook(self, path): 
     238        """Make sure the '-u' flag is included in the python argument""" 
     239        if '-u' not in path: 
     240            path += " -u" 
     241        self.dprint(path) 
     242        return path 
    236243 
    237244    def findParagraphStart(self, linenum, info):