Changeset 1026
- Timestamp:
- 06/13/03 20:54:17 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pykota
r1004 r1026 23 23 # 24 24 # $Log$ 25 # Revision 1.34 2003/06/13 18:54:17 jalet 26 # Bug with remote jobs and LPRng fixed. 27 # 25 28 # Revision 1.33 2003/05/28 13:51:38 jalet 26 29 # Better handling of errors … … 184 187 else : 185 188 # Try to detect LPRng 186 jseen = Jseen =Pseen = nseen = rseen = Kseen = None189 jseen = Pseen = nseen = rseen = Kseen = None 187 190 for arg in sys.argv : 188 191 if arg.startswith("-j") : 189 192 jseen = arg[2:].strip() 190 elif arg.startswith("-J") :191 Jseen = arg[2:].strip()192 if Jseen == "(STDIN)" :193 Jseen = None194 193 elif arg.startswith("-n") : 195 194 nseen = arg[2:].strip() … … 203 202 Kseen = 1 # we assume the user wants at least one copy... 204 203 if jseen and Pseen and nseen and rseen : 205 return ("LPRNG", rseen, Pseen, nseen, jseen, Jseen, Kseen) 204 # job is always in stdin (None) 205 return ("LPRNG", rseen, Pseen, nseen, jseen, None, Kseen) 206 206 return (None, None, None, None, None, None, None) # Unknown printing system 207 207