From c87332950043471e52b924f7498b63982ec4302c Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 29 Mar 2010 16:21:26 +0200 Subject: s4-python: Simplify mechanism for finding included Python modules. --- source4/scripting/bin/samba_dnsupdate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/scripting/bin/samba_dnsupdate') diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate index fab112e2bd..8a7b8a4e34 100755 --- a/source4/scripting/bin/samba_dnsupdate +++ b/source4/scripting/bin/samba_dnsupdate @@ -37,9 +37,9 @@ from ldb import SCOPE_BASE from samba import glue from samba.auth import system_session from samba.samdb import SamDB -import samba.external -resolver = samba.external.dns_resolver() +samba.ensure_external_module("dns.resolver", "dnspython") +import dns.resolver as resolver default_ttl = 900 -- cgit