--- a/eric6/Utilities/BackgroundService.py Wed May 12 19:48:57 2021 +0200 +++ b/eric6/Utilities/BackgroundService.py Wed May 12 19:50:20 2021 +0200 @@ -23,9 +23,7 @@ from E5Gui.E5Application import e5App import Preferences import Utilities - -from eric6config import getConfig - +import Globals class BackgroundService(QTcpServer): """ @@ -94,13 +92,17 @@ return None backgroundClient = os.path.join( - getConfig('ericDir'), - "Utilities", "BackgroundClient.py") + os.path.dirname(__file__), "BackgroundClient.py") proc = QProcess() proc.setProcessChannelMode( QProcess.ProcessChannelMode.ForwardedChannels) - args = [backgroundClient, self.hostAddress, str(port), - str(Preferences.getUI("BackgroundServiceProcesses"))] + args = [ + backgroundClient, + self.hostAddress, + str(port), + str(Preferences.getUI("BackgroundServiceProcesses")), + Globals.getPythonLibraryDirectory(), + ] proc.start(interpreter, args) if not proc.waitForStarted(10000): proc = None