| 1 | # -*- coding: utf-8 -*- |
| 2 | |
| 3 | """ |
| 4 | Caller for the command line application. |
| 5 | |
| 6 | """ |
| 7 | |
| 8 | import sys |
| 9 | |
| 10 | from ._optional import import_optional_dependency |
| 11 | |
| 12 | |
| 13 | def main() -> None: |
| 14 | # Check that necessary dependencies are available |
| 15 | import_optional_dependency("wilderness") |
| 16 | |
| 17 | # if so, load the actual main function and call it. |
| 18 | from .console import main as realmain |
| 19 | |
| 20 | sys.exit(realmain()) |
| 21 | |
| 22 | |
| 23 | if __name__ == "__main__": |
| 24 | main() |