1
0
Fork 0
forked from len0rd/rockbox

Handle which not returning anything when searching for qmake.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22895 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2009-10-03 18:16:41 +00:00
parent bbe9d32383
commit 9e25f04e5b

View file

@ -74,12 +74,17 @@ def findqt():
'''Search for Qt4 installation. Return path to qmake.'''
print "Searching for Qt"
bins = ["qmake", "qmake-qt4"]
result = ""
for binary in bins:
q = which.which(binary)
if len(q) > 0:
result = checkqt(q)
return result
try:
q = which.which(binary)
if len(q) > 0:
result = checkqt(q)
if not result == "":
return result
except:
print sys.exc_value
return ""
def checkqt(qmakebin):