39 'thread', '_thread', 'threading', |
39 'thread', '_thread', 'threading', |
40 'greenlet', |
40 'greenlet', |
41 'subprocess', |
41 'subprocess', |
42 'multiprocessing', |
42 'multiprocessing', |
43 'PyQt5.QtCore', |
43 'PyQt5.QtCore', |
|
44 'PyQt6.QtCore', |
44 'PySide2.QtCore', |
45 'PySide2.QtCore', |
|
46 'PySide6.QtCore', |
45 ) |
47 ) |
46 |
48 |
47 sys.meta_path.insert(0, self) |
49 sys.meta_path.insert(0, self) |
48 |
50 |
49 def __loadModule(self, fullname): |
51 def __loadModule(self, fullname): |
98 module.eric6_patched = True |
100 module.eric6_patched = True |
99 patchMultiprocessing(module, self.__dbgClient) |
101 patchMultiprocessing(module, self.__dbgClient) |
100 |
102 |
101 ## Add hook for *.QThread and *.QProcess |
103 ## Add hook for *.QThread and *.QProcess |
102 elif ( |
104 elif ( |
103 fullname in ('PyQt5.QtCore', 'PySide2.QtCore') and |
105 fullname in ('PyQt5.QtCore', 'PyQt6.QtCore', |
|
106 'PySide2.QtCore', 'PySide6.QtCore') and |
104 not hasattr(module, 'eric6_patched') |
107 not hasattr(module, 'eric6_patched') |
105 ): |
108 ): |
106 module.eric6_patched = True |
109 module.eric6_patched = True |
107 self.__dbgClient.patchQThread(module) |
110 self.__dbgClient.patchQThread(module) |
108 patchQProcess(module, self.__dbgClient) |
111 patchQProcess(module, self.__dbgClient) |