Changeset 1470
- Timestamp:
- 07/08/08 08:34:49 (5 months ago)
- Files:
-
- 1 modified
-
trunk/peppy/major.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/peppy/major.py
r1464 r1470 956 956 default_classprefs = ( 957 957 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), 958 959 BoolParam('autosave_before_run', True, 'Automatically save without prompting before running script'), 959 960 IndexChoiceParam('output_log', … … 964 965 def getInterpreterArgs(self): 965 966 """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")) 967 969 if hasattr(self, "interpreterArgs"): 968 970 return self.interpreterArgs 969 return ""971 return self.classprefs.interpreter_args 970 972 971 973 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")) 974 980 if hasattr(self, "scriptArgs"): 975 981 return self.scriptArgs
