9 lines
372 B
Python
Executable File
9 lines
372 B
Python
Executable File
#!/usr/bin/python3 -I
|
|
"""Recover without importing any module from the mutable Hydra runtime."""
|
|
from pathlib import Path
|
|
import runpy
|
|
|
|
path = Path(__file__).resolve()
|
|
engine = Path('/usr/lib/hydra-update/engine.py') if path.parent == Path('/usr/bin') else path.parent.parent / 'hydra/update_engine.py'
|
|
raise SystemExit(runpy.run_path(str(engine))['main'](recovery=True))
|