diff -r 197414ba11cc -r b3eefd7e58d1 eric6/Utilities/BackgroundService.py --- a/eric6/Utilities/BackgroundService.py Sat May 01 14:27:38 2021 +0200 +++ b/eric6/Utilities/BackgroundService.py Thu Jun 03 11:39:23 2021 +0200 @@ -23,8 +23,7 @@ from E5Gui.E5Application import e5App import Preferences import Utilities - -from eric6config import getConfig +import Globals class BackgroundService(QTcpServer): @@ -94,13 +93,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