Source code for dae.configuration.utils

import os


[docs]def validate_path(field: str, value: str, error): if not os.path.isabs(value): error(field, f"path <{value}> is not an absolute path")
[docs]def validate_existing_path(field: str, value: str, error): if not os.path.isabs(value): error(field, f"path <{value}> is not an absolute path!") if not os.path.exists(value): error(field, f"path <{value}> does not exist!")