def isAdmin():
try:<EOL><INDENT>return os.getuid() == <NUM_LIT:0><EOL><DEDENT>except AttributeError:<EOL><INDENT>return ctypes.windll.shell32.IsUserAnAdmin() != <NUM_LIT:0><EOL><DEDENT>
return True is current os user is administrator