-#!/usr/bin/env python
+#!/bin/sh
+"""": # -*-python-*-
+bup_python="$(dirname "$0")/bup-python" || exit $?
+exec "$bup_python" "$0" ${1+"$@"}
+"""
+# end of bup preamble
import sys, os, stat, fnmatch
from bup import options, git, shquote, vfs, ls
from bup.helpers import *
if readline:
readline.set_completer_delims(' \t\n\r/')
readline.set_completer(completer)
- if platform.system() == 'Darwin':
+ if sys.platform.startswith('darwin'):
# MacOS uses a slighly incompatible clone of libreadline
readline.parse_and_bind('bind ^I rl_complete')
readline.parse_and_bind('tab: complete')