diff options
-rw-r--r-- | source4/samba_tool/wscript_build | 2 | ||||
-rwxr-xr-x | source4/scripting/bin/samba-tool (renamed from source4/scripting/python/samba/samba-tool.py) | 5 | ||||
-rw-r--r-- | source4/scripting/bin/wscript_build | 1 | ||||
-rw-r--r-- | source4/scripting/wscript_build | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/source4/samba_tool/wscript_build b/source4/samba_tool/wscript_build index 788f8dbf75..f378b51e05 100644 --- a/source4/samba_tool/wscript_build +++ b/source4/samba_tool/wscript_build @@ -1,6 +1,6 @@ #!/usr/bin/env python -bld.SAMBA_BINARY('samba-tool', +bld.SAMBA_BINARY('samba-tool-c', source='samba_tool.c vampire.c gpo.c', autoproto='proto.h', deps='samba-hostconfig samba-util samba-net popt POPT_SAMBA POPT_CREDENTIALS samba-policy auth4', diff --git a/source4/scripting/python/samba/samba-tool.py b/source4/scripting/bin/samba-tool index 494654a78d..9735335af5 100755 --- a/source4/scripting/python/samba/samba-tool.py +++ b/source4/scripting/bin/samba-tool @@ -18,10 +18,9 @@ # import sys -from os.path import dirname -samba_pymodule_dir = dirname(dirname(sys.argv[0])) -sys.path.append(samba_pymodule_dir) +# Find right direction when running from source tree +sys.path.insert(0, "bin/python") from samba import netcmd from samba.netcmd import Command, CommandError, Option diff --git a/source4/scripting/bin/wscript_build b/source4/scripting/bin/wscript_build index e52b32bc02..87387054b3 100644 --- a/source4/scripting/bin/wscript_build +++ b/source4/scripting/bin/wscript_build @@ -3,3 +3,4 @@ bld.SAMBA_SCRIPT('samba_dnsupdate', pattern='samba_dnsupdate', installdir='.') bld.SAMBA_SCRIPT('samba_spnupdate', pattern='samba_spnupdate', installdir='.') bld.SAMBA_SCRIPT('upgradeprovision', pattern='upgradeprovision', installdir='.') +bld.SAMBA_SCRIPT('samba-tool', pattern='samba-tool', installdir='.') diff --git a/source4/scripting/wscript_build b/source4/scripting/wscript_build index d94fc4fe9c..90f1f2f021 100644 --- a/source4/scripting/wscript_build +++ b/source4/scripting/wscript_build @@ -2,7 +2,7 @@ from samba_utils import MODE_755 -bld.INSTALL_FILES('${SBINDIR}','bin/upgradeprovision bin/samba_dnsupdate bin/samba_spnupdate', +bld.INSTALL_FILES('${SBINDIR}','bin/upgradeprovision bin/samba_dnsupdate bin/samba_spnupdate bin/samba-tool', chmod=MODE_755, python_fixup=True, flat=True) bld.RECURSE('bin') |