src/lighthouse/lighthouse-server
raw| 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | import os |
| 4 | import sys |
| 5 | |
| 6 | thisfile = __file__ |
| 7 | if not os.path.isabs(thisfile): |
| 8 | thisfile = os.path.normpath(os.path.join(os.getcwd(), thisfile)) |
| 9 | sys.path.append(os.path.normpath(os.path.join(os.path.dirname(thisfile), '..'))) |
| 10 | |
| 11 | if __name__ == '__main__': |
| 12 | from lighthouse import cli |
| 13 | sys.exit(cli.run(thisfile, sys.argv[1:])) |