~ubuntu-branches/ubuntu/gutsy/hplip/gutsy-security

« back to all changes in this revision

Viewing changes to toolbox.py

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2006-09-15 18:00:07 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060915180007-96mez3nck3oy5wij
Tags: 1.6.7-2ubuntu1
* Merge from debian unstable.
* Removed patches 50_ui-supportform-cleanups.dpatch and
  55_ui-supportform-debian.dpatch, there is no support window in the HP
  toolbox any more.
* HPLIP (file io/hpiod/usbext.h) includes linux/compiler.h which is not
  part of Ubuntu Linux and not needed. Removed the include with patch
  80_no-compiler.h.dpatch.
* debian/control: Let the "Conflicts:" of hpijs-ppds be only a "Breaks:"
  to facilitate an update from the previous version when both hpijs and
  hpijs-ppds are installed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
toolbox  = None
47
47
hpiod_sock = None
48
48
 
 
49
log.set_module('hp-toolbox')
 
50
 
49
51
# PyQt
50
52
if not utils.checkPyQtImport():
51
53
    log.error("PyQt/Qt initialization error. Please check install of PyQt/Qt and try again.")
238
240
    prop.prog = sys.argv[0]
239
241
 
240
242
    try:
241
 
        opts, args = getopt.getopt(sys.argv[1:], 'l:hg', 
 
243
        opts, args = getopt.getopt(args, 'l:hg', 
242
244
            ['level=', 'help', 'help-rest', 'help-man'])
243
245
 
244
246
    except getopt.GetoptError:
282
284
        return 1
283
285
        
284
286
    log.debug("Connected to hpssd on %s:%d" % (prop.hpssd_host, prop.hpssd_port))
285
 
    log.set_module('toolbox')
286
 
    log.debug("Connected to hpssd on %s:%d" % (prop.hpssd_host, prop.hpssd_port))
287
287
 
288
288
    # create the main application object
289
289
    global app
290
290
    app = QApplication(sys.argv)
291
291
 
 
292
    global hpiod_sock
292
293
    hpiod_sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
293
294
    try:
294
295
        hpiod_sock.connect((prop.hpiod_host, prop.hpiod_port))