]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/meta-cmd.py
Prefer python 3, and mention intent to drop python 2 support
[bup.git] / lib / cmd / meta-cmd.py
index e006c0bc7421b59c50bacec2d16cdf9d6e3e2384..e9a3d61146f6a665e7abdd4d4b8c957991958ba9 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
@@ -22,7 +22,10 @@ exec "$bup_python" "$0"
 # TODO: Add tar-like -C option.
 
 from __future__ import absolute_import
-import sys
+import os, sys
+
+sys.path[:0] = [os.path.dirname(os.path.realpath(__file__)) + '/..']
+
 from bup import compat, metadata
 from bup import options
 from bup.compat import argv_bytes