source: sasmodels/extra/run-pylint.py @ 9a66e65

core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 9a66e65 was f01e53d, checked in by pkienzle, 10 years ago

make extra/run-pylint.py a unix executable

  • Property mode set to 100755
File size: 547 bytes
RevLine 
[f01e53d]1#!/usr/bin/env python
2
[6c2eb83]3import os
4import sys
5from os.path import dirname, join as joinpath, abspath
6
7def main():
[3c56da87]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)
[6c2eb83]12    root = abspath(joinpath(dirname(__file__), '..'))
13    os.chdir(root)
[3c56da87]14    cmd = "pylint --rcfile extra/pylint.rc -f parseable sasmodels"
[6c2eb83]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.