src/eric7/Graphics/ApplicationDiagramBuilder.py

branch
eric7
changeset 9645
31aaa11672d3
parent 9624
b47dfa7a137d
child 9646
ab5678db972f
--- 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")

eric ide

mercurial