2026-06-28 14:07:23 +00:00
|
|
|
"""Backward-compat shim - canonical location is routes/gallery/gallery_helpers.py.
|
2026-05-31 23:58:26 +09:00
|
|
|
|
2026-06-28 17:40:34 +08:00
|
|
|
This module is replaced in ``sys.modules`` by the canonical module object so
|
|
|
|
|
that ``import routes.gallery_helpers``, ``from routes.gallery_helpers import X``,
|
|
|
|
|
``importlib.import_module("routes.gallery_helpers")``, and
|
2026-06-28 14:07:23 +00:00
|
|
|
``monkeypatch.setattr(routes.gallery_helpers, ...)`` all operate on the same
|
2026-06-28 17:40:34 +08:00
|
|
|
object. Keeps existing import paths working after slice 2a (#4082/#4071).
|
|
|
|
|
"""
|
2026-05-31 23:58:26 +09:00
|
|
|
|
2026-06-28 17:40:34 +08:00
|
|
|
import sys as _sys
|
2026-05-31 23:58:26 +09:00
|
|
|
|
2026-06-28 17:40:34 +08:00
|
|
|
from routes.gallery import gallery_helpers as _canonical # noqa: F401
|
2026-05-31 23:58:26 +09:00
|
|
|
|
2026-06-28 17:40:34 +08:00
|
|
|
_sys.modules[__name__] = _canonical
|