def theme_config_get_dir():
    """Return themes directory, with expanded WeeChat home dir."""
    global theme_config_option
    return weechat.config_string(
        theme_config_option['themes_dir']).replace('%h',
                                                   weechat.info_get('weechat_dir', ''))