# -*- coding: utf-8 -*-
"""
/***************************************************************************
 GeokodowanieAdresow
                                 A QGIS plugin
 Wtyczka geokoduje adresy z pliku do warstwy punktowej
 Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
                             -------------------
        begin                : 2024-12-13
        copyright            : (C) 2024 by EnviroSolutions Sp. z o.o.
        email                : office@envirosolutions.pl
        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.
"""

import os


"""Wersja wtyczki"""
PLUGIN_NAME = ''
PLUGIN_VERSION = ''

with open(os.path.join(os.path.dirname(__file__), 'metadata.txt'), 'r') as pluginMetadataFile:
    for line in pluginMetadataFile:
        if line.startswith('name='):
            PLUGIN_NAME = line.split('=')[1].strip()
        elif line.startswith('version='):
            PLUGIN_VERSION = line.split('=')[1].strip()

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

    :param iface: A QGIS interface instance.
    :type iface: QgsInterface
    """
    #    
    from .geokodowanie_adresow import GeokodowanieAdresow
    return GeokodowanieAdresow(iface)
