Fixed linting on Windows

This commit is contained in:
Tereza Tomcova 2016-11-18 21:50:53 +01:00
parent 6b34b97c29
commit 5498a31493
2 changed files with 5 additions and 3 deletions

View file

@ -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__':