# SPDX-License-Identifier: AGPL-3.0-only # Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. """Pytest config for studio/install tests: add studio/ to sys.path so `backend` imports work from the repo root.""" from __future__ import annotations import sys from pathlib import Path # /studio → makes `backend` importable as a package _STUDIO_DIR = Path(__file__).resolve().parents[3] / "studio" if str(_STUDIO_DIR) not in sys.path: sys.path.insert(0, str(_STUDIO_DIR))