From f80728f28461a452e68076b2a68b783c899fd2eb Mon Sep 17 00:00:00 2001 From: Joshua Lucas Date: Thu, 5 Nov 2026 22:00:49 -0600 Subject: [PATCH] Change AuDaGe.folders to list of Path rather than str. --- src/AuDaGe/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/AuDaGe/__init__.py b/src/AuDaGe/__init__.py index 0e95d0a..b6ebb09 100644 --- a/src/AuDaGe/__init__.py +++ b/src/AuDaGe/__init__.py @@ -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"] \ No newline at end of file + folders: list[Path] = [ + Path(folder) for folder in yaml.safe_load(config_file.read())["folders"] + ]