From dbe0b078492ea20da2b0aa3bb1d1c6138d16454e Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 1 Feb 2011 14:58:11 +1100 Subject: s4-python Remove manipuation of python path from samba module This manipulation should be done by top level scripts, otherwise we won't find samba in the first place (and these can be munged correctly for the install). Andrew Bartlett --- source4/scripting/python/samba/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source4/scripting/python') diff --git a/source4/scripting/python/samba/__init__.py b/source4/scripting/python/samba/__init__.py index 5294368b6d..5faeef05cf 100644 --- a/source4/scripting/python/samba/__init__.py +++ b/source4/scripting/python/samba/__init__.py @@ -32,10 +32,9 @@ def in_source_tree(): return os.path.exists("%s/../../../selftest/skip" % os.path.dirname(__file__)) -# When running, in-tree, make sure bin/python is in the PYTHONPATH +# When running, in-tree, make sure ldb modules can be found if in_source_tree(): srcdir = "%s/../../.." % os.path.dirname(__file__) - sys.path.append("%s/bin/python" % srcdir) default_ldb_modules_dir = "%s/bin/modules/ldb" % srcdir else: default_ldb_modules_dir = None -- cgit