source: trunk/debathena/config/printing-config/debathena/printing/lp.py @ 25835

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
4A script that intelligently determines whether a command was intended
5for CUPS or LPRng and sends it off in the right direction
6"""
7
8
9import sys
10
11from debathena.printing import common
12from debathena.printing import simple
13
14
15opts = (
16    (common.SYSTEM_CUPS, 'EU:cd:h:mn:o:q:st:H:P:i:'),
17)
18
19
20queue_opt = '-d'
21
22
23def _main(args):
24    return simple.simple('lp', opts, queue_opt, args)
25
26
27def main():
28    sys.exit(_main(sys.argv)) # pragma: nocover
29
30
31if __name__ == '__main__':
32    main() # pragma: nocover
Note: See TracBrowser for help on using the repository browser.