46 """ |
46 """ |
47 Private method to build a dictionary of modules contained in the application. |
47 Private method to build a dictionary of modules contained in the application. |
48 |
48 |
49 @return dictionary of modules contained in the application. |
49 @return dictionary of modules contained in the application. |
50 """ |
50 """ |
|
51 import Utilities.ModuleParser |
51 extensions = Preferences.getPython("PythonExtensions") + \ |
52 extensions = Preferences.getPython("PythonExtensions") + \ |
52 Preferences.getPython("Python3Extensions") + ['.rb'] |
53 Preferences.getPython("Python3Extensions") + ['.rb'] |
53 moduleDict = {} |
54 moduleDict = {} |
54 mods = self.project.pdata["SOURCES"] |
55 mods = self.project.pdata["SOURCES"] |
55 modules = [] |
56 modules = [] |
61 progress = QProgressDialog(self.trUtf8("Parsing modules..."), |
62 progress = QProgressDialog(self.trUtf8("Parsing modules..."), |
62 None, 0, tot, self.parent()) |
63 None, 0, tot, self.parent()) |
63 progress.show() |
64 progress.show() |
64 QApplication.processEvents() |
65 QApplication.processEvents() |
65 |
66 |
66 import Utilities.ModuleParser |
|
67 for module in modules: |
67 for module in modules: |
68 progress.setValue(prog) |
68 progress.setValue(prog) |
69 QApplication.processEvents() |
69 QApplication.processEvents() |
70 prog += 1 |
70 prog += 1 |
71 if module.endswith("__init__.py"): |
71 if module.endswith("__init__.py"): |