def _getUserNameUID():
 user = (os.environ.get('USER', None) or os.environ.get('USERNAME', None))
 if (not user):
  return ('undefined', '-1')
 if (sys.platform not in ['win32']):
  uid = shellCall('id -u')
 else:
  uid = '1000'
  if (haveCtypes and ctypes.windll.shell32.IsUserAnAdmin()):
   uid = '0'
 return (str(user), int(uid))

def _getUserNameUID ( ) : user = ( os . environ . get ( 'USER' , None ) or os . environ . get ( 'USERNAME' , None ) ) if ( not user ) : return ( 'undefined' , '-1' ) if ( sys . platform not in [ 'win32' ] ) : uid = shellCall ( 'id -u' ) else : uid = '1000' if ( haveCtypes and ctypes . windll . shell32 . IsUserAnAdmin ( ) ) : uid = '0' return ( str ( user ) , int ( uid ) )
return user name .