]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/server-cmd.py
test-import-duplicity: adjust to FreeBSD's rsync output
[bup.git] / lib / cmd / server-cmd.py
index 5b918140af4d98337d316865388a8e095e5a439b..ada92d24dc34dc4dcfc1aa1a45998fcf7c38a251 100755 (executable)
@@ -9,14 +9,16 @@ 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
 from binascii import hexlify, unhexlify
-import os, sys, struct, subprocess
+import os, struct, subprocess, sys
+
+sys.path[:0] = [os.path.dirname(os.path.realpath(__file__)) + '/..']
 
 from bup import compat, options, git, vfs, vint
 from bup.compat import environ, hexstr