Changeset 1470

Show
Ignore:
Timestamp:
07/08/08 08:34:49 (5 months ago)
Author:
rob
Message:

Added interpreter_args to JobControlMixin? classprefs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/peppy/major.py

    r1464 r1470  
    956956    default_classprefs = ( 
    957957        PathParam('interpreter_exe', '', 'Program that can interpret this text and return results on standard output', fullwidth=True), 
     958        StrParam('interpreter_args', '', 'Standard arguments to be used with the interpreter', fullwidth=True), 
    958959        BoolParam('autosave_before_run', True, 'Automatically save without prompting before running script'), 
    959960        IndexChoiceParam('output_log', 
     
    964965    def getInterpreterArgs(self): 
    965966        """Hook to pass arguments to the command interpreter""" 
    966         dprint(hasattr(self, "interpreterArgs")) 
     967        # FIXME: Why did I put interpreterArgs as an instance attribute? 
     968        #dprint(hasattr(self, "interpreterArgs")) 
    967969        if hasattr(self, "interpreterArgs"): 
    968970            return self.interpreterArgs 
    969         return "" 
     971        return self.classprefs.interpreter_args 
    970972 
    971973    def getScriptArgs(self): 
    972         """Hook to specify any arguments passed to the script itself""" 
    973         dprint(hasattr(self, "scriptArgs")) 
     974        """Hook to specify any arguments passed to the script itself. 
     975         
     976        scriptArgs are saved as an instance attribute so they can be used as 
     977        defaults the next time you run the script. 
     978        """ 
     979        #dprint(hasattr(self, "scriptArgs")) 
    974980        if hasattr(self, "scriptArgs"): 
    975981            return self.scriptArgs