Changeset 1977

Show
Ignore:
Timestamp:
12/10/04 00:03:57 (19 years ago)
Author:
jalet
Message:

Fixed a bug when pkbanner's output was piped into another command (e.g. gs)

Location:
pykota/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/NEWS

    r1975 r1977  
    2424    - 1.21alpha12 : 
    2525     
     26        - Fixed a bug with non standard pkbanner command lines. 
     27         
    2628        - Now logs as errors the differences between precomputed and  
    2729          computed job sizes. **CUPS only for now** 
  • pykota/trunk/pykota/tool.py

    r1960 r1977  
    2222# 
    2323# $Log$ 
     24# Revision 1.146  2004/12/09 23:03:57  jalet 
     25# Fixed a bug when pkbanner's output was piped into another command (e.g. gs) 
     26# 
    2427# Revision 1.145  2004/11/27 22:52:07  jalet 
    2528# Now PyKota searches its configuration files first in system user pykota's 
     
    12671270        if bannerfileorcommand : 
    12681271            banner = "" # no banner by default 
    1269             if (os.access(bannerfileorcommand, os.X_OK)) : 
     1272            if os.access(bannerfileorcommand, os.X_OK) or not os.path.isfile(bannerfileorcommand) : 
    12701273                self.logdebug("Launching %s to generate a banner." % bannerfileorcommand) 
    12711274                child = popen2.Popen3(bannerfileorcommand, capturestderr=1)