__init__.py 366 B

12345678910
  1. from pathlib import Path
  2. # Check that the test directories exist.
  3. if not (Path(__file__).parent / 'baseline_images').exists():
  4. raise IOError(
  5. 'The baseline image directory does not exist. '
  6. 'This is most likely because the test data is not installed. '
  7. 'You may need to install matplotlib from source to get the '
  8. 'test data.')