Fix reference to removed smbpython.
authorJelmer Vernooij <jelmer@samba.org>
Wed, 21 May 2008 13:39:00 +0000 (15:39 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 21 May 2008 13:39:00 +0000 (15:39 +0200)
(This used to be commit 58f956dc4591137489cba16f360f2d24d91dadc1)

source4/setup/enableaccount [changed mode: 0644->0755]
testprogs/blackbox/test_kinit.sh

old mode 100644 (file)
new mode 100755 (executable)
index 849b515..ad81042
@@ -5,11 +5,13 @@
 #      Copyright Jelmer Vernooij 2008
 #      Released under the GNU GPL version 3 or later
 #
+import os, sys
+
+sys.path.insert(0, os.path.join(os.path.dirname(sys.argv[0]), "../bin/python"))
 
 import samba.getopt as options
 import optparse
 import pwd
-import sys
 import ldb
 
 from auth import system_session
index db4b65f327659452201c66095e32f7be78d2e6bc..d3cece0af70b8dc209560b89f4031274fa40d753 100755 (executable)
@@ -23,7 +23,7 @@ samba4bindir=`dirname $0`/../../source/bin
 smbclient=$samba4bindir/smbclient
 samba4kinit=$samba4bindir/samba4kinit
 net=$samba4bindir/net
-enableaccount="$samba4bindir/smbpython `dirname $0`/../../source/setup/enableaccount"
+enableaccount="$PYTHON `dirname $0`/../../source/setup/enableaccount"
 
 . `dirname $0`/subunit.sh