Add compatibility shims at top-level to re-export SYS modules (pipeline/result_table/metadata/models/rich_display)
This commit is contained in:
14
pipeline.py
Normal file
14
pipeline.py
Normal file
@@ -0,0 +1,14 @@
|
||||
"""Backwards-compatibility shim for top-level `pipeline` module.
|
||||
|
||||
The project moved core modules into the `SYS` package (e.g. `SYS.pipeline`).
|
||||
Many third-party code and tests still import top-level names like `pipeline`.
|
||||
This shim ensures `import pipeline` returns the `SYS.pipeline` module object.
|
||||
"""
|
||||
|
||||
from importlib import import_module
|
||||
import sys
|
||||
|
||||
# Import the real implementation and ensure subsequent imports of
|
||||
# the top-level name point to the SYS package module object.
|
||||
_real = import_module("SYS.pipeline")
|
||||
sys.modules[__name__] = _real
|
||||
Reference in New Issue
Block a user