gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject cvs commit: gump gumpy.py
Date Mon, 10 May 2004 21:34:09 GMT
ajack       2004/05/10 14:34:09

  Modified:    .        gumpy.py
  Log:
  If is a TTY cat log to screen.
  
  Revision  Changes    Path
  1.29      +8 -2      gump/gumpy.py
  
  Index: gumpy.py
  ===================================================================
  RCS file: /home/cvs/gump/gumpy.py,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- gumpy.py	5 May 2004 13:58:24 -0000	1.28
  +++ gumpy.py	10 May 2004 21:34:09 -0000	1.29
  @@ -418,8 +418,14 @@
                   published=1
               except:
                   published=0
  -                
  -        if not published:
  +              
  +        # Cat to screen (if running to screen)
  +        tty=0
  +        try:
  +            tty=sys.stdout.isatty()  
  +        except:
  +            pass
  +        if tty or not published:
               catFile(sys.stdout, logFile, logTitle)
           
           if mailserver and mailport and mailto and mailfrom and logurl:
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Mime
View raw message