Change AuDaGe.folders to list of Path rather than str.
This commit is contained in:
@@ -9,6 +9,7 @@ desc: Global variables for the AuDaGe package.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from importlib import resources
|
from importlib import resources
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
@@ -22,4 +23,6 @@ when calling AuDaGe from the command line with the argument `--unsafe`.
|
|||||||
config_path = resources.files().joinpath(CONFIG_PATH)
|
config_path = resources.files().joinpath(CONFIG_PATH)
|
||||||
|
|
||||||
with config_path.open("r") as config_file:
|
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"]
|
||||||
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user