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.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/scripting/bin/minschema.py b/source4/scripting/bin/minschema.py
index fb9d7b05aa..6dd5b42aff 100755
--- a/source4/scripting/bin/minschema.py
+++ b/source4/scripting/bin/minschema.py
@@ -4,6 +4,10 @@
#
import optparse
+
+# Find right directory when running from source tree
+sys.path.insert(0, "bin/python")
+
import samba
from samba import getopt as options
import sys