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):
|
||||
result = []
|
||||
for path in os.environ["PATH"].split(os.pathsep):
|
||||
files = filter(os.path.isfile, glob.glob(os.path.join(path, programGlob)))
|
||||
result.extend(files)
|
||||
for curr in glob.glob(os.path.join(path, programGlob)):
|
||||
if os.path.isfile(curr) and os.access(os.X_OK):
|
||||
result.append(curr)
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user