summaryrefslogtreecommitdiff
path: root/source4/scripting/bin/minschema.py
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/bin/minschema.py')
-rwxr-xr-xsource4/scripting/bin/minschema.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/scripting/bin/minschema.py b/source4/scripting/bin/minschema.py
index fb9d7b05aa..111557126d 100755
--- a/source4/scripting/bin/minschema.py
+++ b/source4/scripting/bin/minschema.py
@@ -4,6 +4,12 @@
#
import optparse
+
+import os, sys
+
+# Find right directory when running from source tree
+sys.path.insert(0, "bin/python")
+
import samba
from samba import getopt as options
import sys