#!/usr/libexec/platform-python
"""Relocatable launcher for helloworld-python-binding."""

from pathlib import Path
import sys

root = Path(__file__).resolve().parents[1]
for candidate in (root / "lib", root):
    if (candidate / "helloworld_python_binding").is_dir():
        sys.path.insert(0, str(candidate))
        break

from helloworld_python_binding.binding import main

raise SystemExit(main())
