# -*- coding: utf-8 -*-
"""
/***************************************************************************
 cyanlove
                                 A QGIS plugin
 申少军的工具箱
 Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
                             -------------------
        begin                : 2024-10-19
        copyright            : (C) 2024 by cyan
        email                : shenshaojun@139.com
        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 sys
import os

# 获取当前插件的根目录路径
plugin_dir = os.path.dirname(__file__)
# 将该路径添加到Python的系统路径中，以便找到chardet模块
if plugin_dir not in sys.path:
    sys.path.insert(0, plugin_dir)

def classFactory(iface):
    from .cyanlove import CyanLove
    return CyanLove(iface)
