]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/daemon-cmd.py
ftp: fix ls arguments for python3
[bup.git] / lib / cmd / daemon-cmd.py
index d47638eec6074864db76e4eba3e671110eb04f66..ffe79ddade9ea70801fe97a918083e15e7aa871e 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
-import sys, getopt, socket, subprocess, fcntl
+import os, sys, getopt, socket, subprocess, fcntl
+
+sys.path[:0] = [os.path.dirname(os.path.realpath(__file__)) + '/..']
 
 from bup import compat, options, path
 from bup.helpers import *