summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/__init__.py b/source4/scripting/python/samba/__init__.py
index f5220b01e2..cb2405a3f9 100644
--- a/source4/scripting/python/samba/__init__.py
+++ b/source4/scripting/python/samba/__init__.py
@@ -25,6 +25,7 @@
__docformat__ = "restructuredText"
import os
+import sys
def _in_source_tree():
"""Check whether the script is being run from the source dir. """
@@ -33,7 +34,6 @@ def _in_source_tree():
# When running, in-tree, make sure bin/python is in the PYTHONPATH
if _in_source_tree():
- import sys
srcdir = "%s/../../.." % os.path.dirname(__file__)
sys.path.append("%s/bin/python" % srcdir)
default_ldb_modules_dir = "%s/bin/modules/ldb" % srcdir