mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
provision: Look for Samba prefix a bit harder.
This commit is contained in:
@ -66,8 +66,10 @@ __docformat__ = "restructuredText"
|
|||||||
def find_setup_dir():
|
def find_setup_dir():
|
||||||
"""Find the setup directory used by provision."""
|
"""Find the setup directory used by provision."""
|
||||||
import sys
|
import sys
|
||||||
|
for prefix in [sys.prefix,
|
||||||
|
os.path.join(os.path.dirname(__file__), "../../../..")]:
|
||||||
for suffix in ["share/setup", "share/samba/setup", "setup"]:
|
for suffix in ["share/setup", "share/samba/setup", "setup"]:
|
||||||
ret = os.path.join(sys.prefix, suffix)
|
ret = os.path.join(prefix, suffix)
|
||||||
if os.path.isdir(ret):
|
if os.path.isdir(ret):
|
||||||
return ret
|
return ret
|
||||||
# In source tree
|
# In source tree
|
||||||
|
Reference in New Issue
Block a user