Graphics/PackageDiagramBuilder.py

changeset 2433
f580320cd0aa
parent 2402
304fcefd3b04
child 2525
8b507a9a2d40
child 2953
703452a2876f
equal deleted inserted replaced
2432:b1a2f9054b28 2433:f580320cd0aa
65 Private method to build a dictionary of modules contained in the package. 65 Private method to build a dictionary of modules contained in the package.
66 66
67 @return dictionary of modules contained in the package. 67 @return dictionary of modules contained in the package.
68 """ 68 """
69 import Utilities.ModuleParser 69 import Utilities.ModuleParser
70
70 supportedExt = \ 71 supportedExt = \
71 ['*{0}'.format(ext) for ext in Preferences.getPython("PythonExtensions")] + \ 72 ['*{0}'.format(ext) for ext in Preferences.getPython("PythonExtensions")] + \
72 ['*{0}'.format(ext) for ext in Preferences.getPython("Python3Extensions")] + \ 73 ['*{0}'.format(ext) for ext in Preferences.getPython("Python3Extensions")] + \
73 ['*.rb'] 74 ['*.rb']
74 extensions = Preferences.getPython("PythonExtensions") + \ 75 extensions = Preferences.getPython("PythonExtensions") + \
109 """ 110 """
110 Private method to build a dictionary of sub-packages contained in this package. 111 Private method to build a dictionary of sub-packages contained in this package.
111 112
112 @return dictionary of sub-packages contained in this package 113 @return dictionary of sub-packages contained in this package
113 """ 114 """
115 import Utilities.ModuleParser
116
114 supportedExt = \ 117 supportedExt = \
115 ['*{0}'.format(ext) for ext in Preferences.getPython("PythonExtensions")] + \ 118 ['*{0}'.format(ext) for ext in Preferences.getPython("PythonExtensions")] + \
116 ['*{0}'.format(ext) for ext in Preferences.getPython("Python3Extensions")] + \ 119 ['*{0}'.format(ext) for ext in Preferences.getPython("Python3Extensions")] + \
117 ['*.rb'] 120 ['*.rb']
118 extensions = Preferences.getPython("PythonExtensions") + \ 121 extensions = Preferences.getPython("PythonExtensions") + \
137 progress = QProgressDialog(self.trUtf8("Parsing modules..."), 140 progress = QProgressDialog(self.trUtf8("Parsing modules..."),
138 None, 0, tot, self.parent()) 141 None, 0, tot, self.parent())
139 progress.show() 142 progress.show()
140 QApplication.processEvents() 143 QApplication.processEvents()
141 144
142 import Utilities.ModuleParser
143 for subpackage in subpackagesList: 145 for subpackage in subpackagesList:
144 packageName = os.path.basename(subpackage) 146 packageName = os.path.basename(subpackage)
145 subpackagesDict[packageName] = [] 147 subpackagesDict[packageName] = []
146 modules = [] 148 modules = []
147 for ext in supportedExt: 149 for ext in supportedExt:

eric ide

mercurial