goodvibes/__main__.py
raw| 1 | import os |
| 2 | import sys |
| 3 | |
| 4 | # If we are running from a wheel, add the wheel to sys.path |
| 5 | # This allows the usage python pip-*.whl/pip install pip-*.whl |
| 6 | |
| 7 | if not __package__: |
| 8 | path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
| 9 | sys.path.insert(0, path) |
| 10 | |
| 11 | from goodvibes import GoodVibes # noqa |
| 12 | |
| 13 | if __name__ == '__main__': |
| 14 | sys.exit(GoodVibes.main()) |