mirror of
https://github.com/xemu-project/xemu-test.git
synced 2024-12-03 16:00:47 +00:00
Add __main__.py dir to import path
This commit is contained in:
parent
c729ec86bb
commit
4282c63ef6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user