Author: bugman Date: Tue Jan 8 15:26:28 2008 New Revision: 4486 URL: http://svn.gna.org/viewcvs/relax?rev=4486&view=rev Log: The status of script execution is now returned by the run() interpreter method. Nothing currently uses this. Modified: 1.3/prompt/interpreter.py Modified: 1.3/prompt/interpreter.py URL: http://svn.gna.org/viewcvs/relax/1.3/prompt/interpreter.py?rev=4486&r1=4485&r2=4486&view=diff ============================================================================== --- 1.3/prompt/interpreter.py (original) +++ 1.3/prompt/interpreter.py Tue Jan 8 15:26:28 2008 @@ -241,7 +241,7 @@ self.intro = 1 # Run the script. - run_script(intro=self.__intro_string, local=self.local, script_file=script_file, quit=self.__quit_flag, show_script=self.__show_script) + return run_script(intro=self.__intro_string, local=self.local, script_file=script_file, quit=self.__quit_flag, show_script=self.__show_script) # Test for the dummy mode for generating documentation (then exit). elif hasattr(self.relax, 'dummy_mode'): @@ -443,7 +443,7 @@ # The console. console = InteractiveConsole(local) - console.interact(intro, local, script_file, quit, show_script=show_script) + return console.interact(intro, local, script_file, quit, show_script=show_script) def runcode(self, code):