From 1b6e5a1b8d8fca65c62cc1e350ddef962e8f9c3f Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Tue, 30 Mar 2010 22:06:45 +0200 Subject: s4:python/samba/__init__.py - import "sys" for "ensure_external_module" method --- source4/scripting/python/samba/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/scripting') 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 -- cgit