Revision 25835,
552 bytes
checked in by jdreed, 11 years ago
(diff) |
In printing-config:
* Kill off LPRng (Trac: #1021). Anyone wishing to print to or otherwise
use an lpr printer should use the rlpr(1) suite of commands.
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | """Debathena lp wrapper script. |
---|
3 | |
---|
4 | A script that intelligently determines whether a command was intended |
---|
5 | for CUPS or LPRng and sends it off in the right direction |
---|
6 | """ |
---|
7 | |
---|
8 | |
---|
9 | import sys |
---|
10 | |
---|
11 | from debathena.printing import common |
---|
12 | from debathena.printing import simple |
---|
13 | |
---|
14 | |
---|
15 | opts = ( |
---|
16 | (common.SYSTEM_CUPS, 'EU:cd:h:mn:o:q:st:H:P:i:'), |
---|
17 | ) |
---|
18 | |
---|
19 | |
---|
20 | queue_opt = '-d' |
---|
21 | |
---|
22 | |
---|
23 | def _main(args): |
---|
24 | return simple.simple('lp', opts, queue_opt, args) |
---|
25 | |
---|
26 | |
---|
27 | def main(): |
---|
28 | sys.exit(_main(sys.argv)) # pragma: nocover |
---|
29 | |
---|
30 | |
---|
31 | if __name__ == '__main__': |
---|
32 | main() # pragma: nocover |
---|
Note: See
TracBrowser
for help on using the repository browser.