diff --git a/docs.py b/docs.py index 421a970..ac5e584 100644 --- a/docs.py +++ b/docs.py @@ -36,7 +36,7 @@ for base, folders, files in os.walk(TEMPLATES + "/" + PAGES_BASE): if name.endswith(".html"): def handler(base, name): def handler(): - return render_template(os.path.join(base, name).strip("/").replace("\\", "/")) + return render_template(os.path.join(base, name).strip("/").replace("\\", "/"), ROOT=os.environ.get("EA_ROOT")) return handler local_base = base.replace("\\", "/").strip(".").strip("/")