Change AuDaGe.folders to list of Path rather than str.

This commit is contained in:
2026-11-05 22:00:49 -06:00
parent 0ad178c487
commit f80728f284

View File

@@ -9,6 +9,7 @@ desc: Global variables for the AuDaGe package.
"""
from importlib import resources
from pathlib import Path
import yaml
@@ -22,4 +23,6 @@ when calling AuDaGe from the command line with the argument `--unsafe`.
config_path = resources.files().joinpath(CONFIG_PATH)
with config_path.open("r") as config_file:
folders: list[str] = yaml.safe_load(config_file.read())["folders"]
folders: list[Path] = [
Path(folder) for folder in yaml.safe_load(config_file.read())["folders"]
]