def os_geteuid(): """ Get current user uid :returns: The current user uid. :rtype: int """ try: # Linux specific return os.geteuid() except AttributeError: # Windows specific return 0