66 """ |
66 """ |
67 supportedExt = \ |
67 supportedExt = \ |
68 ['*{0}'.format(ext) for ext in Preferences.getPython("PythonExtensions")] + \ |
68 ['*{0}'.format(ext) for ext in Preferences.getPython("PythonExtensions")] + \ |
69 ['*{0}'.format(ext) for ext in Preferences.getPython("Python3Extensions")] + \ |
69 ['*{0}'.format(ext) for ext in Preferences.getPython("Python3Extensions")] + \ |
70 ['*.rb'] |
70 ['*.rb'] |
|
71 extensions = Preferences.getPython("PythonExtensions") + \ |
|
72 Preferences.getPython("Python3Extensions") + ['.rb'] |
71 |
73 |
72 moduleDict = {} |
74 moduleDict = {} |
73 modules = [] |
75 modules = [] |
74 for ext in supportedExt: |
76 for ext in supportedExt: |
75 modules.extend(glob.glob(Utilities.normjoinpath(self.package, ext))) |
77 modules.extend(glob.glob(Utilities.normjoinpath(self.package, ext))) |
83 for module in modules: |
85 for module in modules: |
84 progress.setValue(prog) |
86 progress.setValue(prog) |
85 QApplication.processEvents() |
87 QApplication.processEvents() |
86 prog += 1 |
88 prog += 1 |
87 try: |
89 try: |
88 mod = Utilities.ModuleParser.readModule(module) |
90 mod = Utilities.ModuleParser.readModule(module, extensions=extensions) |
89 except ImportError: |
91 except ImportError: |
90 continue |
92 continue |
91 else: |
93 else: |
92 name = mod.name |
94 name = mod.name |
93 if name.startswith(self.package): |
95 if name.startswith(self.package): |