From 9e71fef57b956fa62134e5b885fc4ff78a957e71 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 11 Feb 2009 18:45:51 +0100 Subject: Use convenience function for finding setup dir in SaMDB tests. --- source4/scripting/python/samba/tests/samdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/scripting/python/samba/tests/samdb.py b/source4/scripting/python/samba/tests/samdb.py index 8b8f178bc4..434d7a71f2 100644 --- a/source4/scripting/python/samba/tests/samdb.py +++ b/source4/scripting/python/samba/tests/samdb.py @@ -19,7 +19,7 @@ from samba.auth import system_session from samba.credentials import Credentials import os -from samba.provision import setup_samdb, guess_names, setup_templatesdb, make_smbconf +from samba.provision import setup_samdb, guess_names, setup_templatesdb, make_smbconf, find_setup_dir from samba.samdb import SamDB from samba.tests import cmdline_loadparm, TestCaseInTempDir from samba.dcerpc import security @@ -30,7 +30,7 @@ from samba import param class SamDBTestCase(TestCaseInTempDir): def setup_path(self, relpath): - return os.path.join("setup", relpath) + return os.path.join(find_setup_dir(), relpath) def setUp(self): super(SamDBTestCase, self).setUp() -- cgit