8000 ENH: Use cmd on windows, rather than sh · juliantaylor/numpy@2f99a87 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2f99a87

Browse files
committed
ENH: Use cmd on windows, rather than sh
1 parent e1f3bdf commit 2f99a87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ def main(argv):
181181
sys.exit(0)
182182

183183
if args.shell:
184-
shell = os.environ.get('SHELL', 'sh')
185-
print("Spawning a Unix shell...")
184+
shell = os.environ.get('SHELL', 'cmd' if os.name == 'nt' else 'sh')
185+
print("Spawning a shell ({})...".format(shell))
186186
subprocess.call([shell] + extra_argv)
187187
sys.exit(0)
188188

0 commit comments

Comments
 (0)
0