]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/memtest-cmd.py
README: reflect report that WSL works fine
[bup.git] / lib / cmd / memtest-cmd.py
index 85fd2f6e54dee1f738ec331b828ed6c2d1f0942e..c5d86778f06e9feafb64d299f8b557cfe06c2511 100755 (executable)
@@ -9,13 +9,15 @@ for arg in "$@"; do
     arg_i=$((arg_i + 1))
 done
 # Here to end of preamble replaced during install
-bup_python="$(dirname "$0")/bup-python" || exit $?
+bup_python="$(dirname "$0")/../../config/bin/python" || exit $?
 exec "$bup_python" "$0"
 """
 # end of bup preamble
 
 from __future__ import absolute_import, print_function
-import sys, re, struct, time, resource
+import os.path, re, resource, struct, sys, time
+
+sys.path[:0] = [os.path.dirname(os.path.realpath(__file__)) + '/..']
 
 from bup import compat, git, bloom, midx, options, _helpers
 from bup.compat import range