3 # https://sourceware.org/bugzilla/show_bug.cgi?id=26034
4 export "BUP_ARGV_0"="$0"
7 export "BUP_ARGV_${arg_i}"="$arg"
11 bup_python="$(dirname "$0")/../lib/cmd/bup-python" || exit $?
12 exec "$bup_python" "$0"
16 from __future__ import absolute_import, print_function
18 from os.path import abspath, dirname
19 from sys import stdout
22 script_home = abspath(dirname(__file__))
23 sys.path[:0] = [abspath(script_home + '/../lib'), abspath(script_home + '/..')]
25 from bup import compat
27 for arg in compat.argvb:
28 os.write(stdout.fileno(), arg)
29 os.write(stdout.fileno(), b'\0\n')