30 lines
746 B
Python
30 lines
746 B
Python
"""Compatibility exports for shared model download scripts."""
|
|
|
|
from pathlib import Path
|
|
import sys
|
|
|
|
# Direct script execution puts scripts/ first on sys.path; add the repository root
|
|
# so the shared backend manifest remains importable in both launch modes.
|
|
PROJECT_ROOT = Path(__file__).resolve().parents[1]
|
|
if str(PROJECT_ROOT) not in sys.path:
|
|
sys.path.insert(0, str(PROJECT_ROOT))
|
|
|
|
from backend.model_manifest import (
|
|
MANIFEST_PATH,
|
|
auxiliary_models,
|
|
load_manifest,
|
|
model_directory,
|
|
resolve_auxiliary_model_id,
|
|
resolve_model_id,
|
|
)
|
|
|
|
__all__ = [
|
|
"MANIFEST_PATH",
|
|
"PROJECT_ROOT",
|
|
"auxiliary_models",
|
|
"load_manifest",
|
|
"model_directory",
|
|
"resolve_auxiliary_model_id",
|
|
"resolve_model_id",
|
|
]
|