src/eric7/CondaInterface/Conda.py

branch
eric7
changeset 9278
36448ca469c2
parent 9221
bf71ee032bb4
child 9413
80c06d472826
--- a/src/eric7/CondaInterface/Conda.py	Thu Jul 28 19:44:54 2022 +0200
+++ b/src/eric7/CondaInterface/Conda.py	Fri Jul 29 16:29:31 2022 +0200
@@ -74,12 +74,8 @@
         if ok:
             if "actions" in resultDict and "PREFIX" in resultDict["actions"]:
                 prefix = resultDict["actions"]["PREFIX"]
-            elif "prefix" in resultDict:
-                prefix = resultDict["prefix"]
-            elif "dst_prefix" in resultDict:
-                prefix = resultDict["dst_prefix"]
             else:
-                prefix = ""
+                prefix = resultDict.get("prefix", resultDict.get("dst_prefix", ""))
 
             # determine Python executable
             if prefix:

eric ide

mercurial