utils/check_dependencies.py
raw| 1 | #!/usr/bin/env python |
| 2 | # -*- coding: utf-8 -*- |
| 3 | """Script to check for the availability and version of dependencies.""" |
| 4 | |
| 5 | import sys |
| 6 | |
| 7 | # Change PYTHONPATH to include dependencies. |
| 8 | sys.path.insert(0, '.') |
| 9 | |
| 10 | import utils.dependencies # pylint: disable=wrong-import-position |
| 11 | |
| 12 | |
| 13 | if __name__ == '__main__': |
| 14 | dependency_helper = utils.dependencies.DependencyHelper() |
| 15 | |
| 16 | if not dependency_helper.CheckDependencies(): |
| 17 | sys.exit(1) |