Skip to content

Commit 518cca8

Browse files
authored
Merge pull request #721 from compas-dev/selectpython
Default to python and not pythonw because it is not automatically installed on Mac
2 parents 4e9f657 + d9e3c17 commit 518cca8

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 'pythonw'
200+
return python_executable or default_exe
199201

200202

201203
def prepare_environment(env=None):

0 commit comments

Comments
 (0)