import sys import os def setup_test_env(): ext_root = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) if ext_root not in sys.path: sys.path.append(ext_root)