92 """ |
91 """ |
93 if interpreter == "" or not Utilities.isinpath(interpreter): |
92 if interpreter == "" or not Utilities.isinpath(interpreter): |
94 return None |
93 return None |
95 |
94 |
96 backgroundClient = os.path.join( |
95 backgroundClient = os.path.join( |
97 getConfig('ericDir'), |
96 os.path.dirname(__file__), "BackgroundClient.py") |
98 "Utilities", "BackgroundClient.py") |
|
99 proc = QProcess() |
97 proc = QProcess() |
100 proc.setProcessChannelMode( |
98 proc.setProcessChannelMode( |
101 QProcess.ProcessChannelMode.ForwardedChannels) |
99 QProcess.ProcessChannelMode.ForwardedChannels) |
102 args = [backgroundClient, self.hostAddress, str(port), |
100 args = [ |
103 str(Preferences.getUI("BackgroundServiceProcesses"))] |
101 backgroundClient, |
|
102 self.hostAddress, |
|
103 str(port), |
|
104 str(Preferences.getUI("BackgroundServiceProcesses")), |
|
105 Globals.getPythonLibraryDirectory(), |
|
106 ] |
104 proc.start(interpreter, args) |
107 proc.start(interpreter, args) |
105 if not proc.waitForStarted(10000): |
108 if not proc.waitForStarted(10000): |
106 proc = None |
109 proc = None |
107 return proc |
110 return proc |
108 |
111 |