-#!/usr/bin/env python
+#!/bin/sh
+"""": # -*-python-*-
+bup_python="$(dirname "$0")/../cmd/bup-python" || exit $?
+exec "$bup_python" "$0" ${1+"$@"}
+"""
+# end of bup preamble
+from sys import stderr
import sys
+
if sys.platform.startswith('cygwin'):
+ if sys.getwindowsversion()[0] > 5:
+ # Sounds like the situation is much more complicated here
+ print >> stderr, "can't detect root status for OS version > 5; assuming not root"
+ print 'none'
import ctypes
if ctypes.cdll.shell32.IsUserAnAdmin():
print 'root'