config.py 406 B

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