__init__.py 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # -*- coding: utf-8 -*-
  2. """
  3. /***************************************************************************
  4. MnCheck
  5. A QGIS plugin
  6. Contrôle des données FTTH format MN
  7. Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
  8. -------------------
  9. begin : 2018-12-07
  10. copyright : (C) 2018 by Manche Numérique 2019
  11. email : olivier.massot@manchenumerique.fr
  12. git sha : $Format:%H$
  13. ***************************************************************************/
  14. /***************************************************************************
  15. * *
  16. * This program is free software; you can redistribute it and/or modify *
  17. * it under the terms of the GNU General Public License as published by *
  18. * the Free Software Foundation; either version 2 of the License, or *
  19. * (at your option) any later version. *
  20. * *
  21. ***************************************************************************/
  22. This script initializes the plugin, making it known to QGIS.
  23. """
  24. import os
  25. import sys
  26. HERE = os.path.abspath(os.path.normpath(os.path.join(__file__, os.pardir)))
  27. # sys.path.insert(0, HERE)
  28. sys.path.insert(0, os.path.join(HERE, "ext"))
  29. # noinspection PyPep8Naming
  30. def classFactory(iface): # pylint: disable=invalid-name
  31. """Load MnCheck class from file MnCheck.
  32. """
  33. from main import MnCheck # @UnresolvedImport
  34. return MnCheck(iface)