#!/usr/bin/python3 import os import sys # Setup the path to load local kibot module prev_dir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) if prev_dir not in sys.path: sys.path.insert(0, prev_dir) # Force the pcbnew module load to fail sys.modules['yaml'] = None # Import the module to test from kibot.config_reader import CfgYamlReader # noqa: F401