Skip to content

Commit 5352a07

Browse files
committed
Use the SHELL variable on Windows if it exists
1 parent f058762 commit 5352a07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

conda_spawn/shell.py

+2
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,8 @@ def default_shell_class():
308308
def detect_shell_class():
309309
try:
310310
name, _ = shellingham.detect_shell()
311+
if sys.platform == "win32" and name == "cmd" and "SHELL" in os.environ:
312+
name = os.environ["SHELL"]
311313
except shellingham.ShellDetectionFailure:
312314
return default_shell_class()
313315
else:

0 commit comments

Comments
 (0)