1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

Fix finding of setup data.

This commit is contained in:
Jelmer Vernooij
2009-02-24 00:58:29 +01:00
parent c1e76d0dd9
commit 10c047c6f4

View File

@ -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):