'Reload PEDA sources, keep current options untouch
Usage:
MYNAME [name]'

def reload(self, *arg):

    (modname,) = normalize_argv(arg, 1)
    saved_opt = config.Option
    peda_path = (os.path.dirname(PEDAFILE) + '/lib/')
    if (not modname):
        modname = 'PEDA'
        ret = peda.execute(('source    %s' % PEDAFILE))
    else:
        if (not modname.endswith('.py')):
            modname = (modname + '.py')
        filepath = ('%s/%s' % (peda_path, modname))
        if os.path.exists(filepath):
            ret = peda.execute(('source    %s' % filepath))
            peda.execute(('source    %s' % PEDAFILE))
        else:
            ret = False
    config.Option = saved_opt
    if ret:
        msg(('%s    reloaded!' % modname), 'blue')
    else:
        msg(('Failed    to    reload    %s    source    from:    %s' % (modname, peda_path)))
    return
