mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-30 12:11:32 +08:00
run commands with shell=True
appears to be needed on Windows, and should be harmless elsewhere.
This commit is contained in:
parent
931fbb4f50
commit
f1396457fb
@ -297,6 +297,7 @@ def mtime(path):
|
|||||||
def run(cmd, *args, **kwargs):
|
def run(cmd, *args, **kwargs):
|
||||||
"""Echo a command before running it"""
|
"""Echo a command before running it"""
|
||||||
log.info(" ".join(cmd))
|
log.info(" ".join(cmd))
|
||||||
|
kwargs.setdefault('shell', True)
|
||||||
return check_call(cmd, *args, **kwargs)
|
return check_call(cmd, *args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user