Author: laukpe
Date: Mon Sep 22 05:27:23 2008
New Revision: 784

Modified:
   trunk/tools/statuschecker/statuschecker.py

Log:
better outputs

Modified: trunk/tools/statuschecker/statuschecker.py
==============================================================================
--- trunk/tools/statuschecker/statuschecker.py  (original)
+++ trunk/tools/statuschecker/statuschecker.py  Mon Sep 22 05:27:23 2008
@@ -155,17 +155,17 @@

 if __name__=='__main__':
     import sys
+    import os

     if not 2 <= len(sys.argv) <= 3 or '--help' in sys.argv:
         print __doc__
         sys.exit(1)
     infile = sys.argv[1]
     outfile = len(sys.argv) == 3 and sys.argv[2] or None
-    msg = "Processing input file '%s'" % infile
-    if outfile is not None:
-        msg += " into output file '%s'" % outfile
-    print msg
+    print  "Checking %s" % os.path.abspath(infile)
     rc = process_output(infile, outfile)
+    if outfile:
+        print "Output %s" % os.path.abspath(outfile)
     if rc > 255:
         rc = 255
     sys.exit(rc)

Reply via email to