1# DExTer : Debugging Experience Tester 2# ~~~~~~ ~ ~~ ~ ~~ 3# 4# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 5# See https://llvm.org/LICENSE.txt for license information. 6# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7"""Generic non-dexter-specific utility classes and functions.""" 8 9import os 10 11from dex.utils.Environment import is_native_windows, has_pywin32 12from dex.utils.PrettyOutputBase import PreserveAutoColors 13from dex.utils.RootDirectory import get_root_directory 14from dex.utils.Timer import Timer 15from dex.utils.Warning import warn 16from dex.utils.WorkingDirectory import WorkingDirectory 17 18if is_native_windows(): 19 from dex.utils.windows.PrettyOutput import PrettyOutput 20else: 21 from dex.utils.posix.PrettyOutput import PrettyOutput 22