[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r31152 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r31152 - gnunet/src/util |
Date: |
Fri, 6 Dec 2013 17:32:13 +0100 |
Author: wachs
Date: 2013-12-06 17:32:12 +0100 (Fri, 06 Dec 2013)
New Revision: 31152
Modified:
gnunet/src/util/gnunet-qr.py.in
Log:
working again
Modified: gnunet/src/util/gnunet-qr.py.in
===================================================================
--- gnunet/src/util/gnunet-qr.py.in 2013-12-06 16:25:50 UTC (rev 31151)
+++ gnunet/src/util/gnunet-qr.py.in 2013-12-06 16:32:12 UTC (rev 31152)
@@ -1,4 +1,4 @@
address@hidden@
address@hidden@
import sys
import getopt
import subprocess
@@ -36,7 +36,6 @@
help ()
print str (e)
exit (1)
- print "asdsa"
for o,a in opts:
if o in ("-h", "--help"):
help ()
@@ -49,7 +48,7 @@
silent = True
elif o in ("-v", "--verbose"):
verbose = True
- id (True == verbose):
+ if (True == verbose):
print 'Initializing'
# create a Processor
proc = zbar.Processor()
@@ -59,7 +58,7 @@
# initialize the Processor
try:
- id (True == verbose):
+ if (True == verbose):
print 'Opening video device ' + device
proc.init(device)
except Exception as e:
@@ -75,7 +74,7 @@
proc.visible = True
# read at least one barcode (or until window closed)
try:
- id (True == verbose):
+ if (True == verbose):
print 'Capturing'
proc.process_one()
except Exception as e:
@@ -99,9 +98,9 @@
for a in args:
cmd += " " + str(a)
if (verbose):
- print 'Running ' + cmd
+ print 'Running `' + cmd +'`'
res=subprocess.call(args)
if (0 != res):
- print 'Failed to '
+ print 'Failed to add URI ' + str(symbol.data)
exit (res)
exit (1)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r31152 - gnunet/src/util,
gnunet <=