--- a/src/eric7/Graphics/ApplicationDiagramBuilder.py Fri Dec 23 11:36:26 2022 +0100 +++ b/src/eric7/Graphics/ApplicationDiagramBuilder.py Fri Dec 23 11:37:49 2022 +0100 @@ -117,6 +117,7 @@ # project is a package return path else: + # TODO: replace os.listdir() with os.scandir() # check, if any of the top directories is a package for entry in [e for e in os.listdir(path) if not e.startswith(".")]: fullpath = os.path.join(path, entry) @@ -125,6 +126,7 @@ if os.path.exists(init): candidates.append(fullpath) + # TODO: replace os.listdir() with os.scandir() # check, if project uses the 'src' layout if os.path.exists(os.path.join(path, "src")): srcPath = os.path.join(path, "src")