X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cmd%2Frandom-cmd.py;h=868c3afd3fcebf2a775bc7e5e5a0b63dfd31239b;hb=7e1f05fe8b8d580d61c6a233ec1440adc248c97c;hp=4be366063c18c2792baab50fc55606d03703c795;hpb=6f6a1111ea20316499ad748a1cb118ec5d5c117f;p=bup.git diff --git a/cmd/random-cmd.py b/cmd/random-cmd.py index 4be3660..868c3af 100755 --- a/cmd/random-cmd.py +++ b/cmd/random-cmd.py @@ -1,7 +1,15 @@ -#!/usr/bin/env python -import sys +#!/bin/sh +"""": # -*-python-*- +bup_python="$(dirname "$0")/bup-python" || exit $? +exec "$bup_python" "$0" ${1+"$@"} +""" +# end of bup preamble + +import os, sys + from bup import options, _helpers -from bup.helpers import * +from bup.helpers import atoi, handle_ctrl_c, log, parse_num + optspec = """ bup random [-S seed]