]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/gc-cmd.py
Prefer python 3, and mention intent to drop python 2 support
[bup.git] / lib / cmd / gc-cmd.py
index d8f7bc9810e305e145cb6b29cb2543787c2db27c..71e4e75c7dc7bd34b03f5dd91cab3cc49c2850d5 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
 from bup.gc import bup_gc