eric7/VirtualEnv/VirtualenvConfigurationDialog.py

branch
eric7
changeset 8648
c908f66b9d19
parent 8358
144a6b854f70
child 8838
60ce5c218f0c
diff -r cdbce48aded8 -r c908f66b9d19 eric7/VirtualEnv/VirtualenvConfigurationDialog.py
--- a/eric7/VirtualEnv/VirtualenvConfigurationDialog.py	Mon Sep 27 10:50:18 2021 +0200
+++ b/eric7/VirtualEnv/VirtualenvConfigurationDialog.py	Mon Sep 27 10:51:37 2021 +0200
@@ -322,14 +322,15 @@
         Private method to determine the virtualenv version and set the
         respective label.
         """
-        calls = [
+        calls = []
+        if self.pythonExecPicker.text():
+            calls.append((self.pythonExecPicker.text(),
+                          ["-m", "virtualenv", "--version"]))
+        calls.extend([
             (sys.executable.replace("w.exe", ".exe"),
              ["-m", "virtualenv", "--version"]),
             ("virtualenv", ["--version"]),
-        ]
-        if self.pythonExecPicker.text():
-            calls.append((self.pythonExecPicker.text(),
-                          ["-m", "virtualenv", "--version"]))
+        ])
         
         proc = QProcess()
         for prog, args in calls:

eric ide

mercurial