-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
66 lines (53 loc) · 2.65 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# -*- coding: utf-8 -*-
"""
/***************************************************************************
SpuGeoMemorial
A QGIS plugin
Generates descriptive memorials in the format of the SPU of the Federal Government of Brazil
Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
-------------------
begin : 2018-11-14
copyright : (C) 2018 by Guilherme Henrique
email : guilherme.henrique@planejamento.gov.br
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.
"""
from __future__ import absolute_import
import os
import sys
import importlib
currentDirectoryPath = os.path.dirname(__file__)
#print currentDirectoryPath
libraryDirectoryPath = os.path.join(currentDirectoryPath, 'ENV/Lib/site-packages')
#print libraryDirectoryPath
sys.path.append(libraryDirectoryPath)
libraryDirectoryPath = os.path.join(currentDirectoryPath, 'ENV/Lib/distutils')
#print libraryDirectoryPath
#name_lib_dir = name_lib_dir +'\.qgis2\python\plugins\AzimuthDistanceCalculator\ENV\Lib\distutils'
sys.path.append(libraryDirectoryPath)
libraryDirectoryPath = os.path.join(currentDirectoryPath, 'ENV/Lib')
#print libraryDirectoryPath
#name_lib_dir = name_lib_dir +'\.qgis2\python\plugins\AzimuthDistanceCalculator\ENV\Lib'
sys.path.append(libraryDirectoryPath)
libraryDirectoryPath = os.path.join(currentDirectoryPath, 'ENV/Lib/distutils')
#print libraryDirectoryPath
#name_lib_dir = name_lib_dir +'\.qgis2\python\plugins\AzimuthDistanceCalculator\ENV\Lib\distutils'
sys.path.append(libraryDirectoryPath)
# noinspection PyPep8Naming
def classFactory(iface): # pylint: disable=invalid-name
"""Load SpuGeoMemorial class from file SpuGeoMemorial.
:param iface: A QGIS interface instance.
:type iface: QgsInterface
"""
#
from .spugeo_memorial import SpuGeoMemorial
return SpuGeoMemorial(iface)