]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/xstat-cmd.py
ftp: fix ls arguments for python3
[bup.git] / lib / cmd / xstat-cmd.py
index 297df7225e201ad7c1239af6dd80165d5ea11868..9935b07432d9061b0477e296c3de7118f59f77f4 100755 (executable)
@@ -9,7 +9,7 @@ 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
@@ -20,7 +20,9 @@ exec "$bup_python" "$0"
 # Public License as described in the bup LICENSE file.
 
 from __future__ import absolute_import, print_function
-import sys, stat, errno
+import errno, os.path, sys, stat
+
+sys.path[:0] = [os.path.dirname(os.path.realpath(__file__)) + '/..']
 
 from bup import compat, metadata, options, xstat
 from bup.compat import argv_bytes