diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2009-02-24 00:58:29 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-02-24 00:58:29 +0100 |
commit | 10c047c6f4c0f6b9fdebbdf133a3bd72aa8776de (patch) | |
tree | e201c1e0129231d250cdbfddd3aba45febc2e990 | |
parent | c1e76d0dd9a1a7134fa3c0012a9cbe8f51f0716c (diff) | |
download | samba-10c047c6f4c0f6b9fdebbdf133a3bd72aa8776de.tar.gz samba-10c047c6f4c0f6b9fdebbdf133a3bd72aa8776de.tar.xz samba-10c047c6f4c0f6b9fdebbdf133a3bd72aa8776de.zip |
Fix finding of setup data.
-rw-r--r-- | source4/scripting/python/samba/provision.py | 2 |
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): |