1 | #!/usr/bin/env python
|
2 |
|
3 | # snipped thanks to
|
4 | # http://stackoverflow.com/questions/279237/python-import-a-module-from-a-folder
|
5 |
|
6 | import os, sys, inspect
|
7 |
|
8 | cmd_subfolder = os.path.realpath(os.path.abspath(os.path.join(os.path.split(inspect.getfile( inspect.currentframe() ))[0],"gflags")))
|
9 | if cmd_subfolder not in sys.path:
|
10 | sys.path.insert(0, cmd_subfolder)
|
11 |
|
12 |
|
13 | from closure_linter import gjslint
|
14 |
|
15 | gjslint.main()
|