def change_default_profile(profile):
    config = ConfigParser()
    filepath = os.path.expanduser('~/.mpdc')
    if not config.read(filepath):
        warning('Cannot read the configuration file, run mpdc-configure')
        return
    config['profiles']['default'] = str(profile)
    try:
        with open(filepath, 'w') as configfile:
            config.write(configfile)
            info('Writing configuration file in: ' + filepath)
    except __HOLE__:
        warning('Cannot write configuration file in: ' + filepath)


# --------------------------------
# Commands parser
# --------------------------------
dataset/ETHPy150Open nhrx/mpdc/mpdc/mpdc_configure.py/change_default_profile