X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=blobdiff_plain;f=t%2Fsubtree-hash;h=062f4858be60cfe65e521143415f1da338df67b2;hp=9d0fca6b1783ac2867c9acab41a92670166f8cfd;hb=442ea207e9f1077da4d2bdbb80f93fab5d75eea9;hpb=a8b2a007fcdb85fed7b03ba7c67e0775305c7c9d diff --git a/t/subtree-hash b/t/subtree-hash index 9d0fca6..062f485 100755 --- a/t/subtree-hash +++ b/t/subtree-hash @@ -6,22 +6,12 @@ exec "$bup_python" "$0" ${1+"$@"} # end of bup preamble from __future__ import absolute_import - import os, sys -argv = sys.argv -exe = os.path.realpath(argv[0]) -exepath = os.path.split(exe)[0] or '.' -exeprefix = os.path.split(os.path.abspath(exepath))[0] - -# fix the PYTHONPATH to include our lib dir -libpath = os.path.join(exepath, '..', 'lib') -sys.path[:0] = [libpath] -os.environ['PYTHONPATH'] = libpath + ':' + os.environ.get('PYTHONPATH', '') - from bup.helpers import handle_ctrl_c, readpipe from bup import options + optspec = """ subtree-hash ROOT_HASH [PATH_ITEM...] --