src/eric7/UI/UserInterface.py

branch
eric7
changeset 9548
2d2a91757852
parent 9540
6bc76f2c80aa
child 9549
67295777d9fe
child 9559
34fc53e6159d
--- a/src/eric7/UI/UserInterface.py	Tue Nov 29 13:37:46 2022 +0100
+++ b/src/eric7/UI/UserInterface.py	Tue Nov 29 18:02:03 2022 +0100
@@ -702,9 +702,10 @@
         # environment
         splash.showMessage(self.tr("Starting Debugger..."))
         if Preferences.getShell("StartWithMostRecentlyUsedEnvironment"):
-            self.__debugServer.startClient(
-                False, venvName=Preferences.getShell("LastVirtualEnvironment")
-            )
+            venvName=Preferences.getShell("LastVirtualEnvironment")
+            if venvName == "embedded environment":
+                venvName = ""
+            self.__debugServer.startClient(False, venvName=venvName)
         else:
             self.__debugServer.startClient(False)
 

eric ide

mercurial