mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 13:45:10 -05:00
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.'''
|
'''Search for Qt4 installation. Return path to qmake.'''
|
||||||
print "Searching for Qt"
|
print "Searching for Qt"
|
||||||
bins = ["qmake", "qmake-qt4"]
|
bins = ["qmake", "qmake-qt4"]
|
||||||
result = ""
|
|
||||||
for binary in bins:
|
for binary in bins:
|
||||||
q = which.which(binary)
|
try:
|
||||||
if len(q) > 0:
|
q = which.which(binary)
|
||||||
result = checkqt(q)
|
if len(q) > 0:
|
||||||
return result
|
result = checkqt(q)
|
||||||
|
if not result == "":
|
||||||
|
return result
|
||||||
|
except:
|
||||||
|
print sys.exc_value
|
||||||
|
|
||||||
|
return ""
|
||||||
|
|
||||||
|
|
||||||
def checkqt(qmakebin):
|
def checkqt(qmakebin):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue