Author: tlinnet Date: Fri Feb 14 15:19:58 2014 New Revision: 22191 URL: http://svn.gna.org/viewcvs/relax?rev=22191&view=rev Log: Fix for the user function intro flag. Fix for sr #3117, (https://gna.org/support/?3117) - Functionality to inspect interactively after running script - The equivalence to python -i It should be turned on for the script so you see the "relax>" messages, and then turned off again for the prompt so that the user function text and "relax>" is not printed out twice. Modified: trunk/prompt/interpreter.py Modified: trunk/prompt/interpreter.py URL: http://svn.gna.org/viewcvs/relax/trunk/prompt/interpreter.py?rev=22191&r1=22190&r2=22191&view=diff ============================================================================== --- trunk/prompt/interpreter.py (original) +++ trunk/prompt/interpreter.py Fri Feb 14 15:19:58 2014 @@ -276,7 +276,16 @@ # Execute the script and go into prompt if the interactive flag -p --prompt is given at startup. if script_file and status.prompt: + # Turn on the user function intro flag. + status.uf_intro = True + + # Run the script. run_script(intro=self.__intro_string, local=locals(), script_file=script_file, show_script=self.__show_script, raise_relax_error=self.__raise_relax_error) + + # Turn off the user function intro flag. + status.uf_intro = False + + # Go to the prompt. prompt(intro=None, local=locals()) # Go to the prompt.