s4-python Remove manipuation of python path from samba module
authorAndrew Bartlett <abartlet@samba.org>
Tue, 1 Feb 2011 03:58:11 +0000 (14:58 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 2 Feb 2011 04:21:13 +0000 (15:21 +1100)
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

index 5294368b6dc5c76574a28a54d9ccb8fc4996e6a9..5faeef05cfb1c0e3067846a458b6084d3fc749ff 100644 (file)
@@ -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