| serge-sans-paille | 515bc8c | 2020-07-15 09:31:13 +0200 | [diff] [blame] | 1 | #!/usr/bin/env python |
| Jeremy Morse | 984fad2 | 2019-10-31 16:51:53 +0000 | [diff] [blame] | 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 | |
| Djordje Todorovic | 871388e | 2020-04-23 09:49:02 +0200 | [diff] [blame] | 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 | |
| Jeremy Morse | 984fad2 | 2019-10-31 16:51:53 +0000 | [diff] [blame] | 17 | from dex.tools import main |
| 18 | |
| 19 | if __name__ == '__main__': |
| 20 | return_code = main() |
| 21 | sys.exit(return_code.value) |