# -*- coding: utf-8 -*-
"""
/***************************************************************************
 MoPSP
                                 A QGIS plugin
 Plugin s funkcí pro kontrolu platnosti podmínek pro pásové střídaní plodin.
 Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
                             -------------------
        begin                : 2024-10-23
        copyright            : (C) 2024 by vumop
        git sha              : $Format:%H$
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
 This script initializes the plugin, making it known to QGIS.
"""


# noinspection PyPep8Naming
def classFactory(iface):  # pylint: disable=invalid-name
    """Load MoPSP class from file MoPSP.

    :param iface: A QGIS interface instance.
    :type iface: QgsInterface
    """
    try:
        from .psp.crs_transform import ensure_jtsk_grids, _register_proj_search_path
        _register_proj_search_path()
        ensure_jtsk_grids(show_guide_on_fail=False)
    except Exception:
        pass
    from .MoPSP import MoPSP
    return MoPSP(iface)
