samba-tool: Replace C version of samba-tool with python version
[nivanova/samba-autobuild/.git] / source4 / scripting / bin / samba-tool
similarity index 94%
rename from source4/scripting/python/samba/samba-tool.py
rename to source4/scripting/bin/samba-tool
index 494654a78da05759c1935eac2d9da8712f902e79..9735335af5f7d1d15cc2ae41d20231f3d0880f2c 100755 (executable)
 #
 
 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