mirror of
https://github.com/Strategic-Automation/violin.git
synced 2026-08-14 12:33:37 +02:00
11 lines
356 B
Python
11 lines
356 B
Python
import sys
|
|
from pathlib import Path
|
|
|
|
# Make the repo's `scripts/` directory importable so `guard.*` submodules
|
|
# (e.g. guard.bootstrap) resolve in tests, mirroring how the CLI adds
|
|
# SCRIPTS_DIR to sys.path.
|
|
_ROOT = Path(__file__).resolve().parent.parent
|
|
_SCRIPTS = _ROOT / "scripts"
|
|
if str(_SCRIPTS) not in sys.path:
|
|
sys.path.insert(0, str(_SCRIPTS))
|