From 75df13307132d066f3e4bf79789b5a89387d8e53 Mon Sep 17 00:00:00 2001 From: Ebag333 Date: Wed, 22 Mar 2017 01:10:55 -0700 Subject: [PATCH] Add hack to add in root path to python paths (cherry picked from commit 1068c41) --- tests/test_smoketests/helpers.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_smoketests/helpers.py b/tests/test_smoketests/helpers.py index d02378a39..c7cacb3d4 100644 --- a/tests/test_smoketests/helpers.py +++ b/tests/test_smoketests/helpers.py @@ -1,6 +1,13 @@ # noinspection PyPackageRequirements import pytest +import os +import sys + +script_dir = os.path.dirname(os.path.abspath(__file__)) +# Add root folder to python paths +sys.path.append(os.path.realpath(os.path.join(script_dir, '..', '..'))) + # noinspection PyUnresolvedReferences,PyUnusedLocal @pytest.fixture