diff --git a/daal4py/sklearn/monkeypatch/tests/test_patching.py b/daal4py/sklearn/monkeypatch/tests/test_patching.py index 22e9aaec35..b7bf3a77a0 100644 --- a/daal4py/sklearn/monkeypatch/tests/test_patching.py +++ b/daal4py/sklearn/monkeypatch/tests/test_patching.py @@ -55,7 +55,10 @@ def get_result_log(): absolute_path = str(pathlib.Path(__file__).parent.absolute()) try: process = subprocess.check_output( - [sys.executable, absolute_path + "/utils/_launch_algorithms.py"] + [ + sys.executable, + os.sep.join([absolute_path, "utils", "_launch_algorithms.py"]), + ] ) except subprocess.CalledProcessError as e: print(e) diff --git a/daal4py/sklearn/monkeypatch/tests/utils/_launch_algorithms.py b/daal4py/sklearn/monkeypatch/tests/utils/_launch_algorithms.py index a4c8b97e5c..ee7ac8d6d6 100644 --- a/daal4py/sklearn/monkeypatch/tests/utils/_launch_algorithms.py +++ b/daal4py/sklearn/monkeypatch/tests/utils/_launch_algorithms.py @@ -29,8 +29,7 @@ from sklearn.datasets import load_diabetes, load_iris, make_regression from sklearn.metrics import pairwise_distances, roc_auc_score -absolute_path = str(pathlib.Path(__file__).parent.absolute()) -sys.path.append(absolute_path + "/../") +sys.path.append(str(pathlib.Path(__file__).parent.parent.absolute())) from _models_info import MODELS_INFO, TYPES @@ -84,7 +83,7 @@ def run_patch(model_info, dtype): logging.info(i) -def run_algotithms(): +def run_algorithms(): for info in MODELS_INFO: for t in TYPES: model_name = get_class_name(info["model"]) @@ -114,5 +113,5 @@ def run_utils(): if __name__ == "__main__": - run_algotithms() + run_algorithms() run_utils()