--- a/eric6/VirtualEnv/VirtualenvExecDialog.py Tue Apr 13 18:02:59 2021 +0200 +++ b/eric6/VirtualEnv/VirtualenvExecDialog.py Tue Apr 13 19:59:17 2021 +0200 @@ -287,10 +287,7 @@ """ Private method to write a script file to the virtualenv directory. """ - if self.__pyvenv: - basename = "create_pyvenv" - else: - basename = "create_virtualenv" + basename = "create_pyvenv" if self.__pyvenv else "create_virtualenv" if isWindowsPlatform(): script = os.path.join(self.__targetDir, basename + ".cmd") txt = self.__cmd