__init__.py 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # -*- coding: utf-8 -*-
  2. """
  3. /***************************************************************************
  4. FileSystem
  5. A QGIS plugin
  6. Plugin allows users to rename layers on disk within QGIS, and copy layer paths (both absolute and relative) to the clipboard.
  7. Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
  8. -------------------
  9. begin : 2022-05-31
  10. copyright : (C) 2022 by TUFLOW
  11. email : support@tuflow.com
  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. # noinspection PyPep8Naming
  25. def classFactory(iface): # pylint: disable=invalid-name
  26. """Load FileSystem class from file FileSystem.
  27. :param iface: A QGIS interface instance.
  28. :type iface: QgsInterface
  29. """
  30. #
  31. from .file_management import FileManagement
  32. import sys
  33. pv = sys.version_info
  34. if pv.major < 3:
  35. return
  36. if pv.major == 3 and pv.minor < 8:
  37. return
  38. return FileManagement(iface)