mirror of
https://github.com/xemu-project/xemu-test.git
synced 2024-12-04 08:37:22 +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 inspect
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
import xemutest
|
import xemutest
|
||||||
|
|
||||||
@ -22,6 +23,8 @@ def main():
|
|||||||
|
|
||||||
tests = []
|
tests = []
|
||||||
result = True
|
result = True
|
||||||
|
|
||||||
|
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
||||||
for path in os.listdir(os.path.dirname(__file__)):
|
for path in os.listdir(os.path.dirname(__file__)):
|
||||||
if not path.startswith("test_") or path == "test_base.py":
|
if not path.startswith("test_") or path == "test_base.py":
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user