diff --git a/test/OLItest/TestRunner.py b/test/OLItest/TestRunner.py index 5235949..bb7e1c6 100644 --- a/test/OLItest/TestRunner.py +++ b/test/OLItest/TestRunner.py @@ -21,7 +21,7 @@ import shutil import subprocess import tempfile from ConfigParser import SafeConfigParser -from OLItest import default_conf +from . import default_conf class OLITestLib(): cred_file = None diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/test/tests/test_01_basic.py b/test/tests/test_01_basic.py index 4456890..7f30052 100644 --- a/test/tests/test_01_basic.py +++ b/test/tests/test_01_basic.py @@ -17,8 +17,8 @@ import random import unittest import logging import os, sys -# Insert ".." into the python search path -cmd_folder = os.path.dirname(os.path.abspath(__file__)) +# Insert ".." into the python search path to get OLItest +cmd_folder = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) if cmd_folder not in sys.path: sys.path.insert(0, cmd_folder) from OLItest import OLITestLib