This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user