From: Jelmer Vernooij Date: Sat, 24 May 2008 15:56:49 +0000 (+0200) Subject: Move some scripts to examples directory since they're not really generically useful. X-Git-Tag: samba-4.0.0alpha4~24^2~46 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4026493e91f8096e5d602cd42f9a83d2d75042db;p=thirdparty%2Fsamba.git Move some scripts to examples directory since they're not really generically useful. --- diff --git a/source/scripting/bin/samba3dump b/source/scripting/bin/samba3dump index d89667233f1..c11f8dbd0d7 100755 --- a/source/scripting/bin/samba3dump +++ b/source/scripting/bin/samba3dump @@ -14,7 +14,7 @@ sys.path.insert(0, "bin/python") import samba import samba.samba3 -parser = optparse.OptionParser("provision []") +parser = optparse.OptionParser("samba3dump []") parser.add_option("--format", type="choice", metavar="FORMAT", choices=["full", "summary"]) @@ -96,7 +96,7 @@ def print_samba3_secrets(secrets): def print_samba3_regdb(regdb): print_header("Registry") - from registry import str_regtype + from samba.registry import str_regtype for k in regdb.keys(): print "[%s]" % k diff --git a/source/scripting/bin/samr.py b/source/scripting/python/examples/samr.py similarity index 99% rename from source/scripting/bin/samr.py rename to source/scripting/python/examples/samr.py index e91b5bc3126..1f2afbe688e 100755 --- a/source/scripting/bin/samr.py +++ b/source/scripting/python/examples/samr.py @@ -100,7 +100,7 @@ if len(sys.argv) != 2: binding = sys.argv[1] -print "Connecting to " + binding +print "Connecting to %s" % binding try: samr = samr.samr(binding) except Exception, e: diff --git a/source/scripting/bin/winreg.py b/source/scripting/python/examples/winreg.py similarity index 100% rename from source/scripting/bin/winreg.py rename to source/scripting/python/examples/winreg.py