mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 07:23:00 +00:00
Passed shell argument to check_call instead of calling cmd.exe directly
This commit is contained in:
10
setup.py
10
setup.py
@@ -181,10 +181,9 @@ class Bower(BaseCommand):
|
||||
env = os.environ.copy()
|
||||
env['PATH'] = npm_path
|
||||
args = ['bower', 'install', '--allow-root', '--config.interactive=false']
|
||||
if os.name == 'nt':
|
||||
args = ['cmd', '/C'] + args
|
||||
shell = True if os.name == 'nt' else False
|
||||
try:
|
||||
check_call(args, cwd=here, env=env)
|
||||
check_call(args, cwd=here, env=env, shell=shell)
|
||||
except OSError as e:
|
||||
print("Failed to run bower: %s" % e, file=sys.stderr)
|
||||
print("You can install js dependencies with `npm install`", file=sys.stderr)
|
||||
@@ -240,10 +239,9 @@ class CSS(BaseCommand):
|
||||
'--source-map-rootpath=../',
|
||||
style_less, style_css,
|
||||
]
|
||||
if os.name == 'nt':
|
||||
args = ['cmd', '/C'] + args
|
||||
shell = True if os.name == 'nt' else False
|
||||
try:
|
||||
check_call(args, cwd=here, env=env)
|
||||
check_call(args, cwd=here, env=env, shell=shell)
|
||||
except OSError as e:
|
||||
print("Failed to run lessc: %s" % e, file=sys.stderr)
|
||||
print("You can install js dependencies with `npm install`", file=sys.stderr)
|
||||
|
Reference in New Issue
Block a user