]> arthur.barton.de Git - bup.git/blobdiff - cmd/random-cmd.py
README: replace du code example's tab prefix with spaces
[bup.git] / cmd / random-cmd.py
index 4be366063c18c2792baab50fc55606d03703c795..3eef820143be8ed3f506ce4af8381c6511fdca71 100755 (executable)
@@ -1,7 +1,16 @@
-#!/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
+
+from __future__ import absolute_import
+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] <numbytes>