forked from qt-creator/qt-creator
Squish: Skip non-executable debuggers
Change-Id: Ibdcd4c01e2393ad34115764e1babf810a7f09053 Reviewed-by: Robert Loehning <robert.loehning@digia.com>
This commit is contained in:
@@ -327,6 +327,7 @@ def __checkCreatedSettings__(settingsFolder):
|
|||||||
def findAllFilesInPATH(programGlob):
|
def findAllFilesInPATH(programGlob):
|
||||||
result = []
|
result = []
|
||||||
for path in os.environ["PATH"].split(os.pathsep):
|
for path in os.environ["PATH"].split(os.pathsep):
|
||||||
files = filter(os.path.isfile, glob.glob(os.path.join(path, programGlob)))
|
for curr in glob.glob(os.path.join(path, programGlob)):
|
||||||
result.extend(files)
|
if os.path.isfile(curr) and os.access(os.X_OK):
|
||||||
|
result.append(curr)
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user