diff options
-rw-r--r-- | source4/scripting/python/samba/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
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 |