X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=t%2Ftest-argv;h=818619f323514aa57837634173be54e148a009e3;hb=4da04257d78f1f2e16925ab12817966f875cc4b3;hp=27423646feeccb63bea02fa571e4792f92d94451;hpb=ff935e1abef2ebe89a809c100edc7931523f3349;p=bup.git diff --git a/t/test-argv b/t/test-argv index 2742364..818619f 100755 --- a/t/test-argv +++ b/t/test-argv @@ -1,6 +1,6 @@ #!/bin/sh """": # -*-python-*- -bup_python="$(dirname "$0")/../cmd/bup-python" || exit $? +bup_python="$(dirname "$0")/../config/bin/python" || exit $? exec "$bup_python" "$0" ${1+"$@"} """ # end of bup preamble @@ -13,7 +13,7 @@ from subprocess import check_output from sys import stderr, stdout import sys -script_home = abspath(dirname(sys.argv[0] or '.')) +script_home = abspath(dirname(__file__)) sys.path[:0] = [abspath(script_home + '/../lib'), abspath(script_home + '/..')] from wvtest import wvcheck, wvfail, wvmsg, wvpass, wvpasseq, wvpassne, wvstart