Was incorrect

This commit is contained in:
Roland Hedberg
2010-03-11 10:12:59 +01:00
parent 4ac22376f5
commit 74854558df

View File

@@ -28,9 +28,9 @@ import random
import os import os
def get_xmlsec_binary(): def get_xmlsec_binary():
for path in os.environ["PATH"]: for path in os.environ["PATH"].split(":"):
fil = os.path.join(os.path.dirname(path), "xmlsec1") fil = os.path.join(path, "xmlsec1")
if os.access(fil): if os.access(fil,os.X_OK):
return fil return fil
raise Exception("Can't find xmlsec1") raise Exception("Can't find xmlsec1")