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
# Public License as described in the bup LICENSE file.
from __future__ import absolute_import, print_function
-import errno, os.path, sys, stat
-sys.path[:0] = [os.path.dirname(os.path.realpath(__file__)) + '/..']
+# Intentionally replace the dirname "$0" that python prepends
+import os, sys
+sys.path[0] = os.path.dirname(os.path.realpath(__file__)) + '/..'
+
+import errno, os.path, stat
from bup import compat, metadata, options, xstat
from bup.compat import argv_bytes