1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-06 16:23:49 +03:00

Use plain Python C API for registry module, rather than SWIG.

This commit is contained in:
Jelmer Vernooij
2008-12-18 16:49:33 +00:00
parent 49d522fe38
commit 61a2d5c878
4 changed files with 323 additions and 20 deletions

View File

@@ -653,7 +653,7 @@ def setup_registry(path, setup_path, session_info, credentials, lp):
reg = registry.Registry()
hive = registry.open_ldb(path, session_info=session_info,
credentials=credentials, lp_ctx=lp)
reg.mount_hive(hive, "HKEY_LOCAL_MACHINE")
reg.mount_hive(hive, registry.HKEY_LOCAL_MACHINE)
provision_reg = setup_path("provision.reg")
assert os.path.exists(provision_reg)
reg.diff_apply(provision_reg)