| 1 |
#!/usr/bin/env python |
| 2 |
# DExTer : Debugging Experience Tester |
| 3 |
# ~~~~~~ ~ ~~ ~ ~~ |
| 4 |
# |
| 5 |
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 6 |
# See https://llvm.org/LICENSE.txt for license information. |
| 7 |
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 8 |
"""DExTer entry point. This is the only non-module file.""" |
| 9 |
|
| 10 |
import sys |
| 11 |
|
| 12 |
if sys.version_info < (3, 6, 0): |
| 13 |
sys.stderr.write("You need python 3.6 or later to run DExTer\n") |
| 14 |
# Equivalent to sys.exit(ReturnCode._ERROR). |
| 15 |
sys.exit(1) |
| 16 |
|
| 17 |
from dex.tools import main |
| 18 |
|
| 19 |
if __name__ == "__main__": |
| 20 |
return_code = main() |
| 21 |
sys.exit(return_code.value) |