Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix invalid regular expression warnings
- Loading branch information
|
@@ -169,8 +169,8 @@ def selectFile(self): |
|
|
filename = str(files[0]) |
|
|
selectedFileFilter = str(fileDialog.selectedNameFilter()) |
|
|
if not filename.lower().endswith( |
|
|
tuple(re.findall("\*(\.[a-z]{1,10})", fileFilter))): |
|
|
ext = re.search("\*(\.[a-z]{1,10})", selectedFileFilter) |
|
|
tuple(re.findall("\\*(\\.[a-z]{1,10})", fileFilter))): |
|
|
ext = re.search("\\*(\\.[a-z]{1,10})", selectedFileFilter) |
|
|
if ext: |
|
|
filename = filename + ext.group(1) |
|
|
self.leOutputFile.setText(filename) |
|
|
|
@@ -84,8 +84,8 @@ def showSelectionDialog(self): |
|
|
self.tr('Save file'), path, filefilter) |
|
|
if filename: |
|
|
if not filename.lower().endswith( |
|
|
tuple(re.findall("\*(\.[a-z]{1,10})", filefilter))): |
|
|
ext = re.search("\*(\.[a-z]{1,10})", selectedFileFilter) |
|
|
tuple(re.findall("\\*(\\.[a-z]{1,10})", filefilter))): |
|
|
ext = re.search("\\*(\\.[a-z]{1,10})", selectedFileFilter) |
|
|
if ext: |
|
|
filename += ext.group(1) |
|
|
settings.setValue('/Processing/LastBatchOutputPath', os.path.dirname(filename)) |
|
|