eric6/DebugClients/Python/ModuleLoader.py

changeset 7911
4621c9082a43
parent 7894
4370a8b30648
child 7923
91e843545d9a
equal deleted inserted replaced
7910:2eeec6bc49e6 7911:4621c9082a43
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)

eric ide

mercurial