source: sasmodels/extra/run-pylint.py @ 404ebbd

core_shell_microgelscostrafo411magnetic_modelticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 404ebbd was 823e620, checked in by Paul Kienzle <pkienzle@…>, 9 years ago

delint

  • Property mode set to 100755
File size: 788 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():
[823e620]8    extra = abspath(dirname(__file__))
9    root = abspath(joinpath(extra, '..'))
10
[3c56da87]11    envpath = os.environ.get('PYTHONPATH',None)
12    path = [envpath] if envpath else []
[823e620]13    path.append(extra)
14
15    #bumps = abspath(joinpath(root, "..", "bumps"))
16    #periodictable = abspath(joinpath(root, "..", "periodictable"))
17    #sasview = abspath(joinpath(root, "..", "sasview", "src"))
18    #path.extend((bumps, periodictable, sasview))
19
[3c56da87]20    os.environ['PYTHONPATH'] = ':'.join(path)
[823e620]21
22    # Run the lint command
[3c56da87]23    cmd = "pylint --rcfile extra/pylint.rc -f parseable sasmodels"
[823e620]24    os.chdir(root)
[6c2eb83]25    status = os.system(cmd)
26    sys.exit(status)
27
28if __name__ == "__main__":
29    main()
Note: See TracBrowser for help on using the repository browser.