def home_dir():
 if IS_WINDOWS_PLATFORM:
  return os.environ.get('USERPROFILE', '')
 else:
  return os.path.expanduser('~')

def home_dir ( ) : if IS_WINDOWS_PLATFORM : return os . environ . get ( 'USERPROFILE' , '' ) else : return os . path . expanduser ( '~' )
get the users home directory .