()
return config_path
Return the path to the user home config directory
Return the path to the user home config directory
Return the path to the user home config directory
def get_config_dir():
    """
    Return the path to the user home config directory
    """
    user_home = os.getenv('XDG_CONFIG_HOME')
    if user_home is None or not user_home:
        config_path = os.path.expanduser(os.path.join('~', '.config'))
    else:
        config_path = user_home

    return config_path
def get_config_dir ( ) : user_home = os . getenv ( 'XDG_CONFIG_HOME' ) if user_home is None or not user_home : config_path = os . path . expanduser ( os . path . join ( '~' , '.config' ) ) else : config_path = user_home return config_path