- if sys.getwindowsversion()[0] > 5:
- # Sounds like the situation is much more complicated here
- print("can't detect root status for OS version > 5; assuming not root",
- file=stderr)
- print('none')
- import ctypes
- if ctypes.cdll.shell32.IsUserAnAdmin():