136 @param workingDir directory to start the debugger client in |
136 @param workingDir directory to start the debugger client in |
137 @type str |
137 @type str |
138 @return the process object |
138 @return the process object |
139 @rtype QProcess or None |
139 @rtype QProcess or None |
140 """ |
140 """ |
141 proc = QProcess() |
141 proc = QProcess(self) |
142 if environment is not None: |
142 if environment is not None: |
143 env = QProcessEnvironment() |
143 env = QProcessEnvironment() |
144 for key, value in list(environment.items()): |
144 for key, value in list(environment.items()): |
145 env.insert(key, value) |
145 env.insert(key, value) |
146 proc.setProcessEnvironment(env) |
146 proc.setProcessEnvironment(env) |