changes 4
Some checks failed
Build Org Website / build (push) Failing after 53s

This commit is contained in:
2026-05-07 16:36:12 +01:00
parent 6322e54ba1
commit 2df30b9c87
4 changed files with 15 additions and 4 deletions

View File

@@ -34,7 +34,9 @@ def looks_like_content_root(path: Path) -> bool:
def resolve_root() -> Path:
env_root = os.environ.get("AUTHOR_ROOT")
if env_root:
return Path(env_root).expanduser().resolve()
resolved = Path(env_root).expanduser().resolve()
if looks_like_content_root(resolved):
return resolved
candidates = [
Path.cwd(),
Path(__file__).resolve().parent,