mailr4447 - /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 January 07, 2008 - 17:59:
Author: bugman
Date: Mon Jan  7 17:59:23 2008
New Revision: 4447

URL: http://svn.gna.org/viewcvs/relax?rev=4447&view=rev
Log:
Added the quit argument to the run() class method.

This is to allow the system/functional tests to run this method and to ask 
relax not to quit.


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=4447&r1=4446&r2=4447&view=diff
==============================================================================
--- 1.3/prompt/interpreter.py (original)
+++ 1.3/prompt/interpreter.py Mon Jan  7 17:59:23 2008
@@ -137,11 +137,14 @@
         self._Vmd = Vmd(relax)
 
 
-    def run(self):
+    def run(self, quit=True):
         """Run the python interpreter.
 
         The namespace of this function is the namespace seen inside the 
interpreter.  All user
         accessible functions, classes, etc, should be placed in this 
namespace.
+
+        @param quit:    If true, the default, then relax will exit after 
running this function.
+        @type quit:     bool
         """
 
         # Python modules.
@@ -221,7 +224,7 @@
             self.intro = 1
 
             # Run the script.
-            run_script(intro=self.relax.intro_string, local=self.local, 
script_file=self.relax.script_file, quit=1)
+            run_script(intro=self.relax.intro_string, local=self.local, 
script_file=self.relax.script_file, quit=quit)
 
         # Test for the dummy mode for generating documentation (then exit).
         elif hasattr(self.relax, 'dummy_mode'):




Related Messages


Powered by MHonArc, Updated Mon Jan 07 18:00:20 2008