From d206ccb0362396b9de326ab1c43ed3af9d8b60a3 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Wed, 26 Feb 2014 11:35:24 +0100 Subject: config API: prepend source dir search path for tests Instead of appending the search patch in the source directory should be prepended. Otherwise the test might find files installed in the default paths of the system first. As a result the compiled python files in the build directory must be remove in the clean target to make 'make distcheck' pass. Reviewed-by: Jakub Hrozek --- src/config/SSSDConfigTest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/config') diff --git a/src/config/SSSDConfigTest.py b/src/config/SSSDConfigTest.py index 182572fce..bfec8d058 100755 --- a/src/config/SSSDConfigTest.py +++ b/src/config/SSSDConfigTest.py @@ -12,7 +12,7 @@ import sys srcdir = os.getenv('srcdir') if srcdir: - sys.path.append("./src/config") + sys.path.insert(0, "./src/config") srcdir = srcdir + "/src/config" else: srcdir = "." -- cgit