s4-python Remove manipuation of python path from samba module
[ira/wip.git] / 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