forked from gltn/stdm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
executable file
·32 lines (28 loc) · 1.49 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
"""
/***************************************************************************
Name : Social Tenure Domain Model
Description : QGIS Entry Point for Social Tenure Domain Model
Date : 23/May/13
copyright : (C) 2013 by John Gitau
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* 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
third_party_dir = os.path.abspath(os.path.join(os.path.dirname( __file__ ),"third_party"))
font_dir = os.path.abspath(os.path.join(os.path.dirname( __file__ ),"third_party/fontTools"))
if not third_party_dir in sys.path:
sys.path.append(third_party_dir)
sys.path.append(font_dir)
def classFactory(iface):
from stdm import STDMQGISLoader
return STDMQGISLoader(iface)