""" DEPRECATED - Superseded by capture_screen.py, which produces a screenshot whose height is the WebView document height, so hotspot coordinates line up with the image. Kept so existing commands keep working; it forwards to the replacement. """ import runpy import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parent)) print( "[deprecated] capture_long_screen.py now runs capture_screen.py - see its --help for options.", file=sys.stderr, ) sys.argv[0] = str(Path(__file__).resolve().parent / "capture_screen.py") runpy.run_module("capture_screen", run_name="__main__")