mailr9424 - /1.3/prompt/interpreter.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on September 01, 2009 - 16:40:
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:




Related Messages


Powered by MHonArc, Updated Wed Sep 02 21:20:10 2009