blob: 49ba85db43d9c226a1793671fab11cf5b487bc58 [file] [log] [blame]
serge-sans-paille515bc8c2020-07-15 09:31:13 +02001#!/usr/bin/env python
Jeremy Morse984fad22019-10-31 16:51:53 +00002# 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
10import sys
11
Djordje Todorovic871388e2020-04-23 09:49:02 +020012if 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 Morse984fad22019-10-31 16:51:53 +000017from dex.tools import main
18
19if __name__ == '__main__':
20 return_code = main()
21 sys.exit(return_code.value)