from pathlib import Path import os import sys # Ignore inherited Python overlays (for example a shell that sourced a ROS workspace). # All runtime dependencies belong to uv's virtual environment. overlays = {str(Path(p).resolve()) for p in os.environ.get("PYTHONPATH", "").split(os.pathsep) if p} sys.path[:] = [p for p in sys.path if str(Path(p).resolve()) not in overlays] sys.path.insert(0, str(Path(__file__).resolve().parent / "src")) from iiwa_genesis.cli import main if __name__ == "__main__": main()