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

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

delint

  • Property mode set to 100755
File size: 788 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    extra = abspath(dirname(__file__))
9    root = abspath(joinpath(extra, '..'))
10
11    envpath = os.environ.get('PYTHONPATH',None)
12    path = [envpath] if envpath else []
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
20    os.environ['PYTHONPATH'] = ':'.join(path)
21
22    # Run the lint command
23    cmd = "pylint --rcfile extra/pylint.rc -f parseable sasmodels"
24    os.chdir(root)
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.