Changeset 823e620 in sasmodels for extra/run-pylint.py
- Timestamp:
- Jan 29, 2016 8:46:54 PM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- eafc9fa
- Parents:
- 803f835
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extra/run-pylint.py
rf01e53d r823e620 6 6 7 7 def main(): 8 extra = abspath(dirname(__file__)) 9 root = abspath(joinpath(extra, '..')) 10 8 11 envpath = os.environ.get('PYTHONPATH',None) 9 12 path = [envpath] if envpath else [] 10 path.append(abspath(dirname(__file__))) # so we can find the plugins 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 11 20 os.environ['PYTHONPATH'] = ':'.join(path) 12 root = abspath(joinpath(dirname(__file__), '..')) 21 22 # Run the lint command 23 cmd = "pylint --rcfile extra/pylint.rc -f parseable sasmodels" 13 24 os.chdir(root) 14 cmd = "pylint --rcfile extra/pylint.rc -f parseable sasmodels"15 25 status = os.system(cmd) 16 26 sys.exit(status)
Note: See TracChangeset
for help on using the changeset viewer.