eric6/UI/FindFileDialog.py

changeset 8260
2161475d9639
parent 8235
78e6d29eb773
child 8265
0090cfa83159
diff -r 2bbec88047dd -r 2161475d9639 eric6/UI/FindFileDialog.py
--- a/eric6/UI/FindFileDialog.py	Wed Apr 21 19:40:50 2021 +0200
+++ b/eric6/UI/FindFileDialog.py	Thu Apr 22 18:02:47 2021 +0200
@@ -510,10 +510,11 @@
             
             self.findProgressLabel.setPath(file)
             
-            if self.projectButton.isChecked():
-                fn = os.path.join(self.project.ppath, file)
-            else:
-                fn = file
+            fn = (
+                os.path.join(self.project.ppath, file)
+                if self.projectButton.isChecked() else
+                file
+            )
             # read the file and split it into textlines
             try:
                 text, encoding, hashStr = Utilities.readEncodedFileWithHash(fn)

eric ide

mercurial