summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-30 22:06:45 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-04-05 12:06:49 +0200
commit1b6e5a1b8d8fca65c62cc1e350ddef962e8f9c3f (patch)
tree9161ae6ace9154a5c859bfdabec903e4d0b2f1d2 /source4/scripting/python
parent488fe76a22b4550110d41068d721c30b337825b5 (diff)
downloadsamba-1b6e5a1b8d8fca65c62cc1e350ddef962e8f9c3f.tar.gz
samba-1b6e5a1b8d8fca65c62cc1e350ddef962e8f9c3f.tar.bz2
samba-1b6e5a1b8d8fca65c62cc1e350ddef962e8f9c3f.zip
s4:python/samba/__init__.py - import "sys" for "ensure_external_module" method
Diffstat (limited to 'source4/scripting/python')
-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