1#!/usr/bin/env python3 2# SPDX-License-Identifier: BSD-3-Clause 3# Copyright(c) 2010-2014 Intel Corporation 4# Copyright(c) 2022 PANTHEON.tech s.r.o. 5# Copyright(c) 2022 University of New Hampshire 6 7"""The DTS executable.""" 8 9from framework import settings 10 11 12def main() -> None: 13 """Set DTS settings, then run DTS. 14 15 The DTS settings are taken from the command line arguments and the environment variables. 16 The settings object is stored in the module-level variable settings.SETTINGS which the entire 17 framework uses. After importing the module (or the variable), any changes to the variable are 18 not going to be reflected without a re-import. This means that the SETTINGS variable must 19 be modified before the settings module is imported anywhere else in the framework. 20 """ 21 settings.SETTINGS = settings.get_settings() 22 23 from framework.runner import DTSRunner 24 25 dts = DTSRunner() 26 dts.run() 27 28 29# Main program begins here 30if __name__ == "__main__": 31 main() 32