11 import os |
11 import os |
12 import time |
12 import time |
13 |
13 |
14 from PyQt6.QtWidgets import QApplication, QInputDialog |
14 from PyQt6.QtWidgets import QApplication, QInputDialog |
15 |
15 |
16 from EricWidgets import EricMessageBox |
16 from eric7.EricWidgets import EricMessageBox |
17 from EricWidgets.EricProgressDialog import EricProgressDialog |
17 from eric7.EricWidgets.EricProgressDialog import EricProgressDialog |
18 |
18 |
19 from .UMLDiagramBuilder import UMLDiagramBuilder |
19 from .UMLDiagramBuilder import UMLDiagramBuilder |
20 |
20 |
21 import Utilities |
21 from eric7 import Preferences, Utilities |
22 import Preferences |
|
23 |
22 |
24 |
23 |
25 class ApplicationDiagramBuilder(UMLDiagramBuilder): |
24 class ApplicationDiagramBuilder(UMLDiagramBuilder): |
26 """ |
25 """ |
27 Class implementing a builder for imports diagrams of the application. |
26 Class implementing a builder for imports diagrams of the application. |
87 QApplication.processEvents() |
86 QApplication.processEvents() |
88 now = time.monotonic() |
87 now = time.monotonic() |
89 if module.endswith("__init__.py"): |
88 if module.endswith("__init__.py"): |
90 continue |
89 continue |
91 try: |
90 try: |
92 mod = Utilities.ModuleParser.readModule( |
91 mod = ModuleParser.readModule( |
93 module, extensions=extensions, caching=False |
92 module, extensions=extensions, caching=False |
94 ) |
93 ) |
95 except ImportError: |
94 except ImportError: |
96 continue |
95 continue |
97 else: |
96 else: |