File size: 499 Bytes
5f0f37c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #!/usr/bin/env python3
"""Runner wrapper for 00_fetch_external_data."""
import sys
from pathlib import Path
# Add submodule to path and execute main
SUBMODULE_DIR = Path(__file__).resolve().parent / "data_ingestion"
sys.path.insert(0, str(SUBMODULE_DIR))
import importlib.util
spec = importlib.util.spec_from_file_location("fetch_ext", SUBMODULE_DIR / "00_fetch_external_data.py")
mod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(mod)
if __name__ == "__main__":
mod.main()
|