106 if not fileExt and Utilities.isWindowsPlatform(): |
106 if not fileExt and Utilities.isWindowsPlatform(): |
107 self.fileList.clear() |
107 self.fileList.clear() |
108 return |
108 return |
109 |
109 |
110 patternFormat = fileExt and "{0}{1}{2}" or "{0}*{1}{2}" |
110 patternFormat = fileExt and "{0}{1}{2}" or "{0}*{1}{2}" |
111 fileNamePattern = patternFormat.format(fileName, os.extsep, |
111 fileNamePattern = patternFormat.format( |
112 fileExt and fileExt or '*') |
112 fileName, os.extsep, fileExt and fileExt or '*') |
113 |
113 |
114 searchPaths = [] |
114 searchPaths = [] |
115 if self.searchDirCheckBox.isChecked() and \ |
115 if self.searchDirCheckBox.isChecked() and \ |
116 self.searchDirEdit.text() != "": |
116 self.searchDirEdit.text() != "": |
117 searchPaths.append(self.searchDirEdit.text()) |
117 searchPaths.append(self.searchDirEdit.text()) |