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

s4-python Remove manipuation of python path from samba module

This manipulation should be done by top level scripts, otherwise we
won't find samba in the first place (and these can be munged correctly
for the install).

Andrew Bartlett
This commit is contained in:
Andrew Bartlett
2011-02-01 14:58:11 +11:00
parent 7faa3be453
commit dbe0b07849

View File

@ -32,10 +32,9 @@ def in_source_tree():
return os.path.exists("%s/../../../selftest/skip" % os.path.dirname(__file__))
# When running, in-tree, make sure bin/python is in the PYTHONPATH
# When running, in-tree, make sure ldb modules can be found
if in_source_tree():
srcdir = "%s/../../.." % os.path.dirname(__file__)
sys.path.append("%s/bin/python" % srcdir)
default_ldb_modules_dir = "%s/bin/modules/ldb" % srcdir
else:
default_ldb_modules_dir = None