Author: bugman Date: Tue Sep 1 16:40:49 2009 New Revision: 9424 URL: http://svn.gna.org/viewcvs/relax?rev=9424&view=rev Log: Fix for the script() user function. The function intro flag at the end of executing an external script was not being restored. 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=9424&r1=9423&r2=9424&view=diff ============================================================================== --- 1.3/prompt/interpreter.py (original) +++ 1.3/prompt/interpreter.py Tue Sep 1 16:40:49 2009 @@ -318,13 +318,14 @@ raise RelaxBinError('quit', quit) # Turn on the function intro flag. + orig_intro_state = self.intro self.intro = True # Execute the script. run_script(local=self.local, script_file=file, quit=quit) - # Turn off the function intro flag. - self.intro = False + # Return the function intro flag to the original value. + self.intro = orig_intro_state class _Exit: