diff -ru ../Ice-3.3.1.orig/scripts/TestUtil.py ./scripts/TestUtil.py --- ../Ice-3.3.1.orig/scripts/TestUtil.py 2009-03-20 10:52:15.000000000 -0700 +++ ./scripts/TestUtil.py 2009-04-05 01:51:26.000000000 -0700 @@ -727,7 +727,7 @@ print >>output, "-Djava.net.preferIPv4Stack=true", print >>output, exe, elif config.lang == "py": - print >>output, "python", exe, + print >>output, sys.executable, exe, elif config.lang == "php" and config.type == "client": print >>output, phpCmd, "-c tmp.ini -f", exe, " -- ", elif config.lang == "cpp" and config.valgrind: @@ -1186,13 +1186,13 @@ global keepGoing if script: - print "if ! python %s %s; then" % (os.path.join(dir, "run.py"), args) + print "if ! %s %s %s; then" % (sys.executable, os.path.join(dir, "run.py"), args) print " echo 'test in %s failed'" % os.path.abspath(dir) if not keepGoing: print " exit 1" print "fi" else: - status = os.system("python " + os.path.join(dir, "run.py " + args)) + status = os.system(sys.executable + " " + os.path.join(dir, "run.py " + args)) if status: if(num > 0):