Fixed an issue in the debug server causing the environment entry "<project>" being present in the start dialog even when the project doesn't define one. eric7

Thu, 23 Nov 2023 19:56:26 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 23 Nov 2023 19:56:26 +0100
branch
eric7
changeset 10335
cc0a21ae0975
parent 10334
24300d16a154
child 10336
c6bc1a214331

Fixed an issue in the debug server causing the environment entry "<project>" being present in the start dialog even when the project doesn't define one.

src/eric7/Debugger/DebugServer.py file | annotate | diff | comparison | revisions
--- a/src/eric7/Debugger/DebugServer.py	Thu Nov 23 16:23:37 2023 +0100
+++ b/src/eric7/Debugger/DebugServer.py	Thu Nov 23 19:56:26 2023 +0100
@@ -2208,7 +2208,8 @@
         @rtype str
         """
         try:
-            if ericApp().getObject("Project").isOpen():
+            project = ericApp().getObject("Project")
+            if project.isOpen() and project.getProjectVenv(resolveDebugger=False):
                 return self.tr("<project>")
             else:
                 return ""

eric ide

mercurial