File size: 305 Bytes
69928d6
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
"""Locate Hydra resources in a source checkout or installed wheel."""

from pathlib import Path


def config_directory() -> str:
    source = Path(__file__).resolve().parents[2] / "configs"
    packaged = Path(__file__).resolve().parent / "configs"
    return str(source if source.is_dir() else packaged)