src/eric7/Utilities/BackgroundService.py

branch
eric7
changeset 9624
b47dfa7a137d
parent 9521
a663a8be64da
child 9653
e67609152c5e
--- a/src/eric7/Utilities/BackgroundService.py	Sun Dec 18 14:19:10 2022 +0100
+++ b/src/eric7/Utilities/BackgroundService.py	Sun Dec 18 19:33:46 2022 +0100
@@ -20,9 +20,10 @@
 from PyQt6.QtNetwork import QHostAddress, QTcpServer
 from PyQt6.QtWidgets import QApplication
 
-from eric7 import Globals, Preferences, Utilities
+from eric7 import Preferences
 from eric7.EricWidgets import EricMessageBox
 from eric7.EricWidgets.EricApplication import ericApp
+from eric7.SystemUtilities import FileSystemUtilities, PythonUtilities
 
 
 class BackgroundService(QTcpServer):
@@ -97,7 +98,7 @@
             ericApp().getObject("VirtualEnvManager").getVirtualenvInterpreter(venvName)
         )
         if not interpreter:
-            interpreter = Globals.getPythonExecutable()
+            interpreter = PythonUtilities.getPythonExecutable()
         return interpreter
 
     def __startExternalClient(self, interpreter, port):
@@ -111,7 +112,7 @@
         @return the process object
         @rtype QProcess or None
         """
-        if interpreter == "" or not Utilities.isinpath(interpreter):
+        if interpreter == "" or not FileSystemUtilities.isinpath(interpreter):
             return None
 
         backgroundClient = os.path.join(
@@ -124,7 +125,7 @@
             self.__hostAddress,
             str(port),
             str(Preferences.getUI("BackgroundServiceProcesses")),
-            Globals.getPythonLibraryDirectory(),
+            PythonUtilities.getPythonLibraryDirectory(),
         ]
         proc.start(interpreter, args)
         if not proc.waitForStarted(10000):

eric ide

mercurial