odysseus/routes/vault_routes.py
Tal.Yuan 0de76c4056
refactor(routes): move vault domain into routes/vault/ subpackage (#5780)
Slice 2k of the route-domain reorganization (#4082/#4071). Moves
vault_routes.py into routes/vault/, leaving a backward-compat
sys.modules shim. Pure file reorganization, no behavior change.
2026-08-03 20:44:00 +02:00

14 lines
577 B
Python

"""Backward-compat shim — canonical location is routes/vault/vault_routes.py.
This module is replaced in ``sys.modules`` by the canonical module object so
that ``import routes.vault_routes``, ``from routes.vault_routes import X``,
and the ``import ... as vr`` + ``monkeypatch.setattr(vr, ...)`` pattern used
by test_vault_password_not_in_argv.py all operate on the *same* object.
Keeps existing import paths working after slice 2k (#4082/#4071).
"""
import sys as _sys
from routes.vault import vault_routes as _canonical # noqa: F401
_sys.modules[__name__] = _canonical