Commit d26f01fd authored by Christian Stenger's avatar Christian Stenger
Browse files

Squish: Skip non-executable debuggers



Change-Id: Ibdcd4c01e2393ad34115764e1babf810a7f09053
Reviewed-by: default avatarRobert Loehning <robert.loehning@digia.com>
parent db3566c6
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment