From: Cheng Zhao Date: Sun, 12 Apr 2015 05:15:11 +0000 (+0800) Subject: Fix pylint warnings X-Git-Tag: v0.23.0~4^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=d19a1063d571f3265584c6fe93c0aef20f719bba;p=electron.git Fix pylint warnings --- diff --git a/script/bootstrap.py b/script/bootstrap.py index 2870e75a..ba9c0b0b 100755 --- a/script/bootstrap.py +++ b/script/bootstrap.py @@ -82,7 +82,9 @@ def bootstrap_brightray(is_dev, url, target_arch): execute_stdout([sys.executable, bootstrap] + args) -def update_node_modules(dirname, env=os.environ): +def update_node_modules(dirname, env=None): + if env is None: + env = os.environ with scoped_cwd(dirname): if is_verbose_mode(): execute_stdout([NPM, 'install', '--verbose'], env)