mailr22870 - /trunk/relax.py


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

Header


Content

Posted by edward on April 29, 2014 - 13:17:
Author: bugman
Date: Tue Apr 29 13:17:21 2014
New Revision: 22870

URL: http://svn.gna.org/viewcvs/relax?rev=22870&view=rev
Log:
Fix for bug #21990, the --log and --tee options not functioning with the test 
suite.

The bug report is at https://gna.org/bugs/?21990.


Modified:
    trunk/relax.py

Modified: trunk/relax.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/relax.py?rev=22870&r1=22869&r2=22870&view=diff
==============================================================================
--- trunk/relax.py      (original)
+++ trunk/relax.py      Tue Apr 29 13:17:21 2014
@@ -160,6 +160,14 @@
         # Set up the warning system.
         lib.warnings.setup()
 
+        # Logging.
+        if self.log_file:
+            io_streams_log(self.log_file)
+
+        # Tee.
+        elif self.tee_file:
+            io_streams_tee(self.tee_file)
+
         # Show the version number and exit.
         if self.mode == 'version':
             print('relax ' + version.version_full())
@@ -178,14 +186,6 @@
 
             # Stop execution.
             return
-
-        # Logging.
-        if self.log_file:
-            io_streams_log(self.log_file)
-
-        # Tee.
-        elif self.tee_file:
-            io_streams_tee(self.tee_file)
 
         # Run the interpreter for the prompt or script modes.
         if self.mode == 'prompt' or self.mode == 'script':




Related Messages


Powered by MHonArc, Updated Tue Apr 29 14:00:02 2014