From e6c8c519ce63dc060ee7e2e017a55492435ef3a8 Mon Sep 17 00:00:00 2001 From: Sebastian Kalinowski Date: Thu, 26 Feb 2015 10:22:59 +0100 Subject: [PATCH] Set test files path dynamically --- test/test_pydot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_pydot.py b/test/test_pydot.py index f15c038..4900bc1 100644 --- a/test/test_pydot.py +++ b/test/test_pydot.py @@ -31,7 +31,7 @@ else: DOT_BINARY_PATH = pydot.find_graphviz()['dot'] -TEST_DIR = './' +TEST_DIR = os.path.dirname(__file__) REGRESSION_TESTS_DIR = os.path.join(TEST_DIR, 'graphs') MY_REGRESSION_TESTS_DIR = os.path.join(TEST_DIR, 'my_tests')