From ea9918624ee22820494b6251c5e9d547e588eaa5 Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Fri, 21 Jun 2019 10:52:38 +0100 Subject: fix local import for python 2.7 --- Wrappers/Python/test/test_TestData.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Wrappers/Python') diff --git a/Wrappers/Python/test/test_TestData.py b/Wrappers/Python/test/test_TestData.py index cb44a07..3b26612 100755 --- a/Wrappers/Python/test/test_TestData.py +++ b/Wrappers/Python/test/test_TestData.py @@ -1,8 +1,9 @@ -from .testclass import CCPiTestClass + import numpy from ccpi.framework import TestData -import os - +import os, sys +sys.path.append( os.path.dirname( os.path.abspath(__file__) ) ) +from testclass import CCPiTestClass class TestTestData(CCPiTestClass): -- cgit v1.2.3