def get_platform_name(is_use_sysconfig=False):
    """
    get platform name
    :param is_use_sysconfig:bool
    :return:str
    """
    import sys
    import sysconfig
    platform_name = sys.platform
    if is_use_sysconfig:
        return sysconfig.get_platform()
    if sys.platform == 'win32':
        platform_name = 'windows'
    if sys.platform == 'darwin':
        platform_name = 'macosx'
    return platform_name
