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: