34 |
34 |
35 def __init__(self, parent=None): |
35 def __init__(self, parent=None): |
36 """ |
36 """ |
37 Constructor |
37 Constructor |
38 """ |
38 """ |
39 super(QProcessWrapper, self).__init__(parent) |
39 super().__init__(parent) |
40 |
40 |
41 ################################################################### |
41 ################################################################### |
42 ## Handling of 'start(...)' below |
42 ## Handling of 'start(...)' below |
43 ################################################################### |
43 ################################################################### |
44 |
44 |
85 if not _debugClient.skipMultiProcessDebugging(scriptName): |
85 if not _debugClient.skipMultiProcessDebugging(scriptName): |
86 newArgs = patchArguments( |
86 newArgs = patchArguments( |
87 _debugClient, |
87 _debugClient, |
88 [program] + arguments, |
88 [program] + arguments, |
89 ) |
89 ) |
90 super(QProcessWrapper, self).start( |
90 super().start( |
91 newArgs[0], newArgs[1:], mode) |
91 newArgs[0], newArgs[1:], mode) |
92 return |
92 return |
93 |
93 |
94 super(QProcessWrapper, self).start(*args, **kwargs) |
94 super().start(*args, **kwargs) |
95 |
95 |
96 ################################################################### |
96 ################################################################### |
97 ## Handling of 'startDetached(...)' below |
97 ## Handling of 'startDetached(...)' below |
98 ################################################################### |
98 ################################################################### |
99 |
99 |
145 ok = isPythonProgram(program) |
145 ok = isPythonProgram(program) |
146 if ok: |
146 if ok: |
147 return QProcessWrapper.startDetachedStatic( |
147 return QProcessWrapper.startDetachedStatic( |
148 program, arguments, wd) |
148 program, arguments, wd) |
149 |
149 |
150 return super(QProcessWrapper, self).startDetached(*args, **kwargs) |
150 return super().startDetached(*args, **kwargs) |
151 |
151 |
152 @staticmethod |
152 @staticmethod |
153 def startDetachedStatic(*args, **kwargs): |
153 def startDetachedStatic(*args, **kwargs): |
154 """ |
154 """ |
155 Static method to start the detached process. |
155 Static method to start the detached process. |