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.WorkingDirectory import WorkingDirectory 16 17if is_native_windows(): 18 from dex.utils.windows.PrettyOutput import PrettyOutput 19else: 20 from dex.utils.posix.PrettyOutput import PrettyOutput 21 22from dex.utils.Logging import Logger 23