Graphics/PackageDiagramBuilder.py

changeset 2334
fc69ad77e18a
parent 2302
f29e9405c851
child 2401
4f428de32b69
child 3072
68f54a5e0c6b
--- a/Graphics/PackageDiagramBuilder.py	Thu Jan 10 19:15:10 2013 +0100
+++ b/Graphics/PackageDiagramBuilder.py	Sat Jan 12 18:44:39 2013 +0100
@@ -105,6 +105,7 @@
                     moduleDict[name] = mod
         finally:
             progress.setValue(tot)
+            progress.deleteLater()
         return moduleDict
     
     def __buildSubpackagesDict(self):
@@ -126,6 +127,7 @@
         for subpackage in os.listdir(self.package):
             subpackagePath = os.path.join(self.package, subpackage)
             if os.path.isdir(subpackagePath) and \
+               subpackage != "__pycache__" and \
                len(glob.glob(os.path.join(subpackagePath, "__init__.*"))) != 0:
                 subpackagesList.append(subpackagePath)
         
@@ -166,6 +168,7 @@
                     subpackagesDict[packageName].insert(0, "__init__")
         finally:
             progress.setValue(tot)
+            progress.deleteLater()
         return subpackagesDict
     
     def buildDiagram(self):

eric ide

mercurial