src/eric7/Debugger/DebugUI.py

branch
eric7
changeset 9377
b9c8dc3b7da1
parent 9315
79be00bfe50c
child 9382
fb89c1dc9825
diff -r e143a7e7254b -r b9c8dc3b7da1 src/eric7/Debugger/DebugUI.py
--- a/src/eric7/Debugger/DebugUI.py	Sat Oct 01 20:06:27 2022 +0200
+++ b/src/eric7/Debugger/DebugUI.py	Sun Oct 02 11:29:11 2022 +0200
@@ -35,8 +35,6 @@
 import UI.PixmapCache
 import UI.Config
 
-from eric7config import getConfig
-
 
 class DebugUI(QObject):
     """
@@ -2082,7 +2080,7 @@
             if not doNotStart:
                 if runProject and self.project.getProjectType() in ["E7Plugin"]:
                     argv = '--plugin="{0}" {1}'.format(fn, argv)
-                    fn = os.path.join(getConfig("ericDir"), "eric7.py")
+                    fn = os.path.join(os.path.dirname(__file__), "..", "eric7_ide.py")
 
                 self.debugViewer.initCallStackViewer(runProject)
 
@@ -2286,7 +2284,7 @@
             if not doNotStart:
                 if runProject and self.project.getProjectType() in ["E7Plugin"]:
                     argv = '--plugin="{0}" {1}'.format(fn, argv)
-                    fn = os.path.join(getConfig("ericDir"), "eric7.py")
+                    fn = os.path.join(os.path.dirname(__file__), "..", "eric7_ide.py")
 
                 self.debugViewer.initCallStackViewer(runProject)
 
@@ -2482,7 +2480,7 @@
             if not doNotStart:
                 if runProject and self.project.getProjectType() in ["E7Plugin"]:
                     argv = '--plugin="{0}" {1}'.format(fn, argv)
-                    fn = os.path.join(getConfig("ericDir"), "eric7.py")
+                    fn = os.path.join(os.path.dirname(__file__), "..", "eric7_ide.py")
 
                 self.debugViewer.initCallStackViewer(runProject)
 
@@ -2701,7 +2699,7 @@
             if not doNotStart:
                 if debugProject and self.project.getProjectType() in ["E7Plugin"]:
                     argv = '--plugin="{0}" {1}'.format(fn, argv)
-                    fn = os.path.join(getConfig("ericDir"), "eric7.py")
+                    fn = os.path.join(os.path.dirname(__file__), "..", "eric7_ide.py")
                     tracePython = True  # override flag because it must be true
 
                 self.debugViewer.initCallStackViewer(debugProject)
@@ -2798,7 +2796,7 @@
         if not doNotStart:
             if forProject and self.project.getProjectType() in ["E7Plugin"]:
                 argv = '--plugin="{0}" {1}'.format(fn, argv)
-                fn = os.path.join(getConfig("ericDir"), "eric7.py")
+                fn = os.path.join(os.path.dirname(__file__), "..", "eric7_ide.py")
 
             self.debugViewer.initCallStackViewer(forProject)
 

eric ide

mercurial