eric6/UI/FindFileDialog.py

changeset 8260
2161475d9639
parent 8235
78e6d29eb773
child 8265
0090cfa83159
equal deleted inserted replaced
8259:2bbec88047dd 8260:2161475d9639
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):

eric ide

mercurial