508 if self.__cancelSearch or breakSearch: |
508 if self.__cancelSearch or breakSearch: |
509 break |
509 break |
510 |
510 |
511 self.findProgressLabel.setPath(file) |
511 self.findProgressLabel.setPath(file) |
512 |
512 |
513 if self.projectButton.isChecked(): |
513 fn = ( |
514 fn = os.path.join(self.project.ppath, file) |
514 os.path.join(self.project.ppath, file) |
515 else: |
515 if self.projectButton.isChecked() else |
516 fn = file |
516 file |
|
517 ) |
517 # read the file and split it into textlines |
518 # read the file and split it into textlines |
518 try: |
519 try: |
519 text, encoding, hashStr = Utilities.readEncodedFileWithHash(fn) |
520 text, encoding, hashStr = Utilities.readEncodedFileWithHash(fn) |
520 lines = text.splitlines(True) |
521 lines = text.splitlines(True) |
521 except (UnicodeError, OSError): |
522 except (UnicodeError, OSError): |