From 4282c63ef667ac147ab7d82c9a1ad1171f962837 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Wed, 16 Mar 2022 23:43:04 -0700 Subject: [PATCH] Add __main__.py dir to import path --- xemutest/__main__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xemutest/__main__.py b/xemutest/__main__.py index ab9e72d..ce62797 100644 --- a/xemutest/__main__.py +++ b/xemutest/__main__.py @@ -3,6 +3,7 @@ import importlib import inspect import logging import os +import sys import xemutest @@ -22,6 +23,8 @@ def main(): tests = [] result = True + + sys.path.append(os.path.dirname(os.path.abspath(__file__))) for path in os.listdir(os.path.dirname(__file__)): if not path.startswith("test_") or path == "test_base.py": continue