]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/fuse-cmd.py
change mktemp to be compatible with busybox
[bup.git] / lib / cmd / fuse-cmd.py
index eb5daf834548bee8360170f7021f0dd6b4e601f9..1b8bd9ccb6d2ac494755c1a44884198281b0540b 100755 (executable)
@@ -9,13 +9,13 @@ 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, os, errno
+import errno, os, sys
 
 try:
     import fuse
@@ -41,6 +41,8 @@ if sys.version_info[0] > 2:
               file=sys.stderr)
         sys.exit(2)
 
+sys.path[:0] = [os.path.dirname(os.path.realpath(__file__)) + '/..']
+
 from bup import compat, options, git, vfs, xstat
 from bup.compat import argv_bytes, fsdecode, py_maj
 from bup.helpers import log