• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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"""Utility functions related to DExTer's directory layout."""
8
9import os
10
11
12def get_root_directory():
13    root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
14    assert os.path.basename(root) == 'dex', root
15    return root
16