Fix traceback working_dir
Committed 11bb8e
--- a/webint_system/__init__.py
+++ b/webint_system/__init__.py
import webagt
app = web.application(__name__, prefix="system")
-
-code_dir = pathlib.Path.home() / "code"
-meta_dir = code_dir / "meta"
-working_dir = code_dir / "working"
+working_dir = "/home/admin/app/lib/python3.10/site-packages/"
def get_ip():
@app.wrap
def set_working_dir(handler, main_app):
+ """Expose the working dir (e.g. traceback contextualization)"""
web.tx.host.working_dir = working_dir
yield