summaryrefslogtreecommitdiff
path: root/source4/setup/provision-backend
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-02-11 18:44:57 +0100
committerJelmer Vernooij <jelmer@samba.org>2009-02-11 18:44:57 +0100
commit53b59aa2cf78d465f471916c7fae60b9f212840b (patch)
tree5d18794de63923fc72603ecd5f0dff4c62380b61 /source4/setup/provision-backend
parentddb4db7c65db202d71785a404622a4d6f1c3906a (diff)
downloadsamba-53b59aa2cf78d465f471916c7fae60b9f212840b.tar.gz
samba-53b59aa2cf78d465f471916c7fae60b9f212840b.tar.bz2
samba-53b59aa2cf78d465f471916c7fae60b9f212840b.zip
Use convenience function for finding setup_dir based on location of
python module.
Diffstat (limited to 'source4/setup/provision-backend')
-rwxr-xr-xsource4/setup/provision-backend4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/setup/provision-backend b/source4/setup/provision-backend
index e4e2d56020..eca209cb18 100755
--- a/source4/setup/provision-backend
+++ b/source4/setup/provision-backend
@@ -34,7 +34,7 @@ from samba import param
from samba.auth import system_session
import samba.getopt as options
-from samba.provision import provision_backend
+from samba.provision import provision_backend, find_setup_dir
parser = optparse.OptionParser("provision [options]")
sambaopts = options.SambaOptions(parser)
@@ -94,7 +94,7 @@ else:
setup_dir = opts.setupdir
if setup_dir is None:
- setup_dir = os.path.dirname(__file__)
+ setup_dir = find_setup_dir()
provision_backend(setup_dir=setup_dir, message=message, smbconf=smbconf, targetdir=opts.targetdir,
realm=opts.realm, domain=opts.domain,