eric6/Utilities/BackgroundService.py

branch
maintenance
changeset 8400
b3eefd7e58d1
parent 8273
698ae46f40a4
parent 8309
10aa9235b817
child 8576
fe1957c69854
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

eric ide

mercurial