def xmlsec():
 try:
  proc = subprocess.Popen(['which', 'xmlsec1'], stdout=subprocess.PIPE)
  return proc.stdout.read().strip()
 except subprocess.CalledProcessError:
  return '/usr/local/bin/xmlsec1'

def xmlsec ( ) : try : proc = subprocess . Popen ( [ 'which' , 'xmlsec1' ] , stdout = subprocess . PIPE ) return proc . stdout . read ( ) . strip ( ) except subprocess . CalledProcessError : return '/usr/local/bin/xmlsec1'
xmlsec path .