diff -r 89cfe35c12f9 -r 125a9caa538f src/eric7/Project/Project.py --- a/src/eric7/Project/Project.py Sun Jun 23 16:23:36 2024 +0200 +++ b/src/eric7/Project/Project.py Mon Jun 24 13:35:01 2024 +0200 @@ -6368,8 +6368,9 @@ filetype in self.getFileCategories() and ( fn not in self.__pdata[filetype] - and ( + or ( filetype == "OTHERS" + and fn not in self.__pdata[filetype] and os.path.dirname(fn) not in self.__pdata["OTHERS"] ) )