Debian Codegraph @

mypyc/test/config.py

raw
1 from __future__ import annotations
2
3 import os
4
5 provided_prefix = os.getenv("MYPY_TEST_PREFIX", None)
6 if provided_prefix:
7 PREFIX = provided_prefix
8 else:
9 this_file_dir = os.path.dirname(os.path.realpath(__file__))
10 PREFIX = os.path.dirname(os.path.dirname(this_file_dir))
11
12 # Location of test data files such as test case descriptions.
13 test_data_prefix = os.path.join(PREFIX, "mypyc", "test-data")