# Path: src/singleton.py
# def singleton(class_):
#   instances = {}
# 
#   def getinstance(*args, **kwargs):
#     if class_ not in instances:
#         instances[class_] = class_(*args, **kwargs)
#     return instances[class_]
# 
#   return getinstance


from qgis.PyQt.QtCore import QTranslator, QCoreApplication
from .singleton import singleton
# -*- coding: utf-8 -*-
"""
/***************************************************************************
 QuickMapServices
                                 A QGIS plugin
 Collection of internet map services
                              -------------------
        begin                : 2014-11-21
        git sha              : $Format:%H$
        copyright            : (C) 2014 by NextGIS
        email                : info@nextgis.com
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/
"""
from __future__ import absolute_import




# Path: src/singleton.py
# def singleton(class_):
#   instances = {}
# 
#   def getinstance(*args, **kwargs):
#     if class_ not in instances:
#         instances[class_] = class_(*args, **kwargs)
#     return instances[class_]
# 
#   return getinstance


# Path: src/custom_translator.py
from qgis.PyQt.QtCore import QTranslator, QCoreApplication
from .singleton import singleton

# -*- coding: utf-8 -*-
"""
/***************************************************************************
 QuickMapServices
                                 A QGIS plugin
 Collection of internet map services
                              -------------------
        begin                : 2014-11-21
        git sha              : $Format:%H$
        copyright            : (C) 2014 by NextGIS
        email                : info@nextgis.com
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/
"""
from __future__ import absolute_import




@singleton