[orca] Fix for Orca not using the specified debug-file when debug flag is not also provided



commit 14b329c4de52d96aca20c460e67d2b8cc8181f76
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Feb 21 09:09:10 2012 -0500

    Fix for Orca not using the specified debug-file when debug flag is not also provided

 src/orca/orca.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/orca.py b/src/orca/orca.py
index dcc0cf6..0206b86 100644
--- a/src/orca/orca.py
+++ b/src/orca/orca.py
@@ -112,6 +112,8 @@ class Options(argparse.Namespace):
         self._validFeaturesPrinted = False
         self.setupRequested = False
         self.showGUI = False
+        self.debug = False
+        self.debugFile = None
 
     def validate(self):
         """Validate the commandline options."""
@@ -162,6 +164,11 @@ class Options(argparse.Namespace):
 
         self.disable = disable
 
+        if self.debugFile:
+            self.debug = True
+        elif self.debug:
+            self.debugFile = time.strftime('debug-%Y-%m-%d-%H:%M:%S.out')
+
     def _printMessageAndExit(self, msg):
         """Prints the specified message string and then exits."""
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]