summaryrefslogtreecommitdiffstats
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-02-24 00:58:29 +0100
committerJelmer Vernooij <jelmer@samba.org>2009-02-24 00:58:29 +0100
commit10c047c6f4c0f6b9fdebbdf133a3bd72aa8776de (patch)
treee201c1e0129231d250cdbfddd3aba45febc2e990 /source4
parentc1e76d0dd9a1a7134fa3c0012a9cbe8f51f0716c (diff)
downloadsamba-10c047c6f4c0f6b9fdebbdf133a3bd72aa8776de.tar.gz
samba-10c047c6f4c0f6b9fdebbdf133a3bd72aa8776de.tar.xz
samba-10c047c6f4c0f6b9fdebbdf133a3bd72aa8776de.zip
Fix finding of setup data.
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/provision.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py
index a5b3e8322f..aca852c762 100644
--- a/source4/scripting/python/samba/provision.py
+++ b/source4/scripting/python/samba/provision.py
@@ -50,7 +50,7 @@ def find_setup_dir():
"""Find the setup directory used by provision."""
dirname = os.path.dirname(__file__)
if "/site-packages/" in dirname:
- prefix = dirname[:dirname.index("/site-packages/")]
+ prefix = "/".join(dirname[:dirname.index("/site-packages/")].split("/")[:-2])
for suffix in ["share/setup", "share/samba/setup", "setup"]:
ret = os.path.join(prefix, suffix)
if os.path.isdir(ret):