- # do something useful with results
- print 'Found ', symbol.type, ' symbol ', '"%s"' % symbol.data
\ No newline at end of file
+ # do something useful with results
+ if (True == verbose):
+ print 'Found ', symbol.type, ' symbol ', '"%s"' % symbol.data
+ args = list()
+ args.append("gnunet-uri")
+ if (configuration != ''):
+ args.append (str("-c " + str(configuration)))
+ args.append (str(symbol.data))
+ cmd = ''
+ for a in args:
+ cmd += " " + str(a)
+ if (verbose):
+ print 'Running `' + cmd +'`'
+ res=subprocess.call(args)
+ if (0 != res):
+ print 'Failed to add URI ' + str(symbol.data)
+ else:
+ print 'Added URI ' + str(symbol.data)
+ exit (res)
+ exit (1)