def get_configfile_user():
    '''return the full path for the user configuration file. If doesn't
       exist, create it for the user.
    '''
    from helpme.defaults import HELPME_CLIENT_SECRETS

    # The inital file has a funny username

    if not os.path.exists(HELPME_CLIENT_SECRETS):
        bot.debug('Generating settings file at %s' % HELPME_CLIENT_SECRETS)
        config_dir = os.path.dirname(HELPME_CLIENT_SECRETS)

        # The configuration directory might be needed for different clients
        if not os.path.exists(config_dir):
            mkdir_p(config_dir)

        name = RobotNamer().generate()

        # Generate the user config

        config = configparser.ConfigParser()
        config['DEFAULT'] = {'Alias': name }
        write_config(HELPME_CLIENT_SECRETS, config)

    return HELPME_CLIENT_SECRETS
def get_configfile_user ( ) : from helpme . defaults import HELPME_CLIENT_SECRETS if not os . path . exists ( HELPME_CLIENT_SECRETS ) : bot . debug ( 'Generating settings file at %s' % HELPME_CLIENT_SECRETS ) config_dir = os . path . dirname ( HELPME_CLIENT_SECRETS ) if not os . path . exists ( config_dir ) : mkdir_p ( config_dir ) name = RobotNamer ( ) . generate ( ) config = configparser . ConfigParser ( ) config [ 'DEFAULT' ] = { 'Alias' : name } write_config ( HELPME_CLIENT_SECRETS , config ) return HELPME_CLIENT_SECRETS
return the full path for the user configuration file. If doesn't
       exist, create it for the user.