src/eric7/Project/Project.py

branch
eric7
changeset 10609
d1a2b3f9b7f8
parent 10607
96cb59c9c3f4
child 10611
60c838d75276
diff -r 43dd9d48c4d6 -r d1a2b3f9b7f8 src/eric7/Project/Project.py
--- a/src/eric7/Project/Project.py	Sun Feb 25 12:51:06 2024 +0100
+++ b/src/eric7/Project/Project.py	Sun Feb 25 17:34:10 2024 +0100
@@ -5551,7 +5551,7 @@
             if filetype == "__IGNORE__"
         ]
 
-        dirs = self.subdirs[:]
+        dirs = [""] if recursiveSearch else self.subdirs[:] + [""]
         for directory in dirs:
             skip = False
             for ignore_pattern in ignore_patterns:
@@ -5574,14 +5574,7 @@
             binpattern = self.__binaryTranslationFile(pattern)
             for ns in newSources:
                 # ignore hidden files and directories
-                if ns.startswith("."):
-                    continue
-                if (
-                    OSUtilities.isWindowsPlatform()
-                    and os.path.isdir(os.path.join(curpath, ns))
-                    and ns.startswith("_")
-                ):
-                    # dot net hack
+                if ns.startswith(".") or ns == "__pycache__":
                     continue
 
                 # set fn to project relative name

eric ide

mercurial