1
0
Эх сурвалжийг харах

Work around differing option parsing assumptions between Python 2.3 and 2.5. The former assumes the arguments always include the program name, while the former assumes it doesn't.

[SVN r45233]
Rene Rivera 18 жил өмнө
parent
commit
6437956b10

+ 4 - 1
tools/regression/src/process_jam_log.py

@@ -76,7 +76,10 @@ class BJamLog2Results:
         #~ print self.target
     
     def add_log(self):
-        bjam_log = xml.dom.minidom.parse(self.input[0])
+        if self.input[0]:
+            bjam_log = xml.dom.minidom.parse(self.input[0])
+        else:
+            bjam_log = xml.dom.minidom.parse(self.input[1])
         self.x(bjam_log.documentElement)
     
     def gen_output(self):

粤ICP备19079148号