]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/damage-cmd.py
Split src tree python use to config/bin/python and dev/bup-python
[bup.git] / lib / cmd / damage-cmd.py
index d9e46da55d25189751eee193b97e8442a29aa271..85995edf439a4532657aafdc4d455ebea1f93a26 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, os, random
+import os, random, sys
+
+sys.path[:0] = [os.path.dirname(os.path.realpath(__file__)) + '/..']
 
 from bup import compat, options
 from bup.compat import argv_bytes, bytes_from_uint, range