mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
r26474: Move credentials-specific kerberos file to credentials subsystem. Fixes missing symbols in some of the python bindings.
(This used to be commit e26d0fff6d
)
This commit is contained in:
committed by
Stefan Metzmacher
parent
eb2c71912b
commit
1afe054916
@ -25,3 +25,7 @@ PYDOCTOR_MODULES=bin/python/ldb.py bin/python/auth.py bin/python/credentials.py
|
||||
|
||||
pydoctor:: pythonmods
|
||||
LD_LIBRARY_PATH=bin/shared PYTHONPATH=bin/python pydoctor --make-html --docformat=restructuredtext --add-package scripting/python/samba/ $(addprefix --add-module , $(PYDOCTOR_MODULES))
|
||||
|
||||
clean::
|
||||
@echo "Removing python modules"
|
||||
@rm -f bin/python/*
|
||||
|
@ -21,6 +21,15 @@
|
||||
import os
|
||||
from misc import ldb_set_credentials
|
||||
|
||||
def _in_source_tree():
|
||||
print os.path.exists("%s/../../../samba4-skip" % os.path.dirname(__file__))
|
||||
|
||||
# When running, in-tree, make sure bin/python is in the PYTHONPATH
|
||||
if _in_source_tree():
|
||||
import sys
|
||||
dir = os.path.dirname(__file__)
|
||||
sys.path.append("%s/../../../bin/python" % os.path.dirname(__file__))
|
||||
|
||||
def Ldb(url, session_info=None, credentials=None, modules_dir=None):
|
||||
"""Open a Samba Ldb file.
|
||||
|
||||
|
Reference in New Issue
Block a user