summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-05-22 01:50:38 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-05-22 01:50:38 +0200
commit6e14d44d27d208bb22e6345fff8785c74a435a59 (patch)
tree2a4f40cd6a41d9366a00fa1a3f4b73a90c08a166 /source4
parenta9c142d4f489be6619066abd59659227b65fa21e (diff)
downloadsamba-6e14d44d27d208bb22e6345fff8785c74a435a59.tar.gz
samba-6e14d44d27d208bb22e6345fff8785c74a435a59.tar.bz2
samba-6e14d44d27d208bb22e6345fff8785c74a435a59.zip
Make sure the default ldb modules dir gets initialized.
(This used to be commit 937456c69d23ece85bdb7415f52d722c2aa6b6b5)
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/__init__.py b/source4/scripting/python/samba/__init__.py
index b9d81c6c3c..29afdb931d 100644
--- a/source4/scripting/python/samba/__init__.py
+++ b/source4/scripting/python/samba/__init__.py
@@ -33,6 +33,8 @@ 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
import ldb