import sys from pathlib import Path # random_times.py lives in the sibling scripts/ directory. sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))