19 lines
518 B
Python
19 lines
518 B
Python
"""Reuse the existing editorial generator without executing upstream code."""
|
|
|
|
import importlib.util
|
|
from pathlib import Path
|
|
|
|
OUT = Path(__file__).resolve().parent
|
|
spec = importlib.util.spec_from_file_location(
|
|
"upscale_editorial", OUT.parent / "zimage-upscale-document-evidence/build_definition.py"
|
|
)
|
|
module = importlib.util.module_from_spec(spec)
|
|
spec.loader.exec_module(module)
|
|
REPO, REF, PATHS, canonical, build = (
|
|
module.REPO,
|
|
module.REF,
|
|
module.PATHS,
|
|
module.canonical,
|
|
module.build,
|
|
)
|