"""Launch the Blurb Photo Book Editor.""" from __future__ import annotations def main() -> int: try: from blurb_editor import run except ImportError as exc: if exc.name and exc.name.startswith("PySide6"): raise SystemExit( "PySide6 is not installed in this Python environment. " "Run .\\.venv\\Scripts\\python.exe -m pip install -r requirements.txt first." ) from exc raise return run() if __name__ == "__main__": raise SystemExit(main())