Skip to content

paths

paths

Filesystem locations of packaged configuration resources.

get_hydra_configs_dir

get_hydra_configs_dir()

Return the packaged Hydra config directory as a filesystem path.

The configs ship inside the versatil package, so this resolves correctly for source checkouts, editable installs, and wheels alike.

Source code in src/versatil/configs/paths.py
def get_hydra_configs_dir() -> Path:
    """Return the packaged Hydra config directory as a filesystem path.

    The configs ship inside the ``versatil`` package, so this resolves
    correctly for source checkouts, editable installs, and wheels alike.
    """
    return Path(str(files("versatil") / "hydra_configs"))