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:
parent
bbe9d32383
commit
9e25f04e5b
1 changed files with 10 additions and 5 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue