diff --git a/package.json b/package.json index e533a3ee5f87..5e917270b3b9 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "asar": "^0.11.0", "browserify": "^13.1.0", "electabul": "~0.0.4", - "electron-docs-linter": "^1.16.0", + "electron-docs-linter": "^1.16.1", "request": "*", "standard": "^8.4.0", "standard-markdown": "^2.1.1" @@ -37,7 +37,7 @@ "lint-cpp": "python ./script/cpplint.py", "lint-py": "python ./script/pylint.py", "lint-api-docs-js": "standard-markdown docs && standard-markdown docs-translations", - "lint-api-docs": "electron-docs-linter docs/api --version=$npm_package_version --outfile=out/electron-api.json", + "lint-api-docs": "electron-docs-linter --outfile=out/electron-api.json", "preinstall": "node -e 'process.exit(0)'", "release": "./script/upload.py -p", "repl": "python ./script/start.py --interactive", diff --git a/script/pylint.py b/script/pylint.py index 4aba3917b84c..a4cb7fdfcb06 100755 --- a/script/pylint.py +++ b/script/pylint.py @@ -14,8 +14,9 @@ def main(): pylint = os.path.join(SOURCE_ROOT, 'vendor', 'depot_tools', 'pylint.py') settings = ['--rcfile=vendor/depot_tools/pylintrc'] pys = glob.glob('script/*.py') - subprocess.check_call([sys.executable, pylint] + settings + pys, - env=dict(PYTHONPATH='script')) + env = os.environ.copy() + env['PYTHONPATH'] = 'script' + subprocess.check_call([sys.executable, pylint] + settings + pys, env=env) if __name__ == '__main__':