source: trunk/debathena/config/printing-config/debathena/printing/lprm.py @ 24774

Revision 24774, 579 bytes checked in by broder, 14 years ago (diff)
printing-config: Exclude statements that can't be unit-tested from coverage calculations.
  • Property svn:executable set to *
Line 
1#!/usr/bin/python
2"""Debathena lprm 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:h:P:'),
17    (common.SYSTEM_LPRNG, 'aAD:P:VU:'),
18)
19
20
21queue_opt = '-P'
22
23
24def _main(args):
25    return simple.simple('lprm', opts, queue_opt, args)
26
27
28def main():
29    sys.exit(_main(sys.argv)) # pragma: nocover
30
31
32if __name__ == '__main__':
33    main() # pragma: nocover
Note: See TracBrowser for help on using the repository browser.