]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/init-cmd.py
Split src tree python use to config/bin/python and dev/bup-python
[bup.git] / lib / cmd / init-cmd.py
index cff5c5cdd7ac3ba07762ffa1362099010bbc011b..b0b039917bc1ee708d2ac676081078df60f77ec5 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
+import os.path, sys
+
+sys.path[:0] = [os.path.dirname(os.path.realpath(__file__)) + '/..']
 
 from bup import compat, git, options, client
 from bup.helpers import log, saved_errors