source: sasmodels/extra/run-pylint.py @ d1fe925

gh-pages
Last change on this file since d1fe925 was d1fe925, checked in by ajj, 8 years ago

Creating gh_pages branch for docs

  • Property mode set to 100755
File size: 547 bytes
Line 
1#!/usr/bin/env python
2
3import os
4import sys
5from os.path import dirname, join as joinpath, abspath
6
7def main():
8    envpath = os.environ.get('PYTHONPATH',None)
9    path = [envpath] if envpath else []
10    path.append(abspath(dirname(__file__))) # so we can find the plugins
11    os.environ['PYTHONPATH'] = ':'.join(path)
12    root = abspath(joinpath(dirname(__file__), '..'))
13    os.chdir(root)
14    cmd = "pylint --rcfile extra/pylint.rc -f parseable sasmodels"
15    status = os.system(cmd)
16    sys.exit(status)
17
18if __name__ == "__main__":
19    main()
Note: See TracBrowser for help on using the repository browser.