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