Skip to content

Commit d9e3c17

Browse files
committed
pythonw for windows python otherwise
1 parent 69d7fde commit d9e3c17

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/compas/_os.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,10 @@ def select_python(python_executable):
194194
if os.path.exists(python):
195195
return python
196196

197+
default_exe = 'pythonw' if is_windows() else 'python'
198+
197199
# Assume a system-wide install exists
198-
return python_executable or 'python'
200+
return python_executable or default_exe
199201

200202

201203
def prepare_environment(env=None):

0 commit comments

Comments
 (0)