summaryrefslogtreecommitdiff
path: root/src/virtualenv/create
diff options
context:
space:
mode:
authorBernát Gábor <bgabor8@bloomberg.net>2020-03-08 10:07:26 +0000
committerGitHub <noreply@github.com>2020-03-08 10:07:26 +0000
commit895c2a920edc18d79388af7bf068f790c29668b3 (patch)
tree0af8a54cd42bb87d5f1a92120116fe1e5c835768 /src/virtualenv/create
parent663cb747f1a7438e35fa14e578b3f55ba0d9a5fb (diff)
downloadvirtualenv-895c2a920edc18d79388af7bf068f790c29668b3.tar.gz
pythonw works as python on Windows (#1693)
* pythonw works as python on Windows Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * foix
Diffstat (limited to 'src/virtualenv/create')
-rw-r--r--src/virtualenv/create/via_global_ref/builtin/cpython/common.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/virtualenv/create/via_global_ref/builtin/cpython/common.py b/src/virtualenv/create/via_global_ref/builtin/cpython/common.py
index 8e6db7f..814d97e 100644
--- a/src/virtualenv/create/via_global_ref/builtin/cpython/common.py
+++ b/src/virtualenv/create/via_global_ref/builtin/cpython/common.py
@@ -41,5 +41,8 @@ class CPythonWindows(CPython, WindowsSupports):
@classmethod
def _executables(cls, interpreter):
host = Path(interpreter.system_executable)
- for path in (host.parent / n for n in ("python.exe", "pythonw.exe", host.name)):
+ for path in (host.parent / n for n in {"python.exe", host.name}):
yield host, [path.name]
+ # for more info on pythonw.exe see https://stackoverflow.com/a/30313091
+ python_w = host.parent / "pythonw.exe"
+ yield python_w, [python_w.name]