13 lines
465 B
Python
Executable File
13 lines
465 B
Python
Executable File
#!/usr/bin/python3 -I
|
|
"""Independent trusted updater launcher; does not import the mutable runtime."""
|
|
from pathlib import Path
|
|
import runpy
|
|
|
|
path = Path(__file__).resolve()
|
|
if path.parent == Path('/usr/bin'):
|
|
engine = Path('/usr/lib/hydra-update/engine.py')
|
|
else:
|
|
# Source checkout only. Installed launchers never fall back to mutable code.
|
|
engine = path.parent.parent / 'hydra/update_engine.py'
|
|
raise SystemExit(runpy.run_path(str(engine))['main']())
|