mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-05 00:06:38 -05:00
This command adds a plugin to active plugins and calls initProcessing(), initializing only Processing related components of that plugin. The new initProcessing() hook should be implemented by plugins which provide Processing providers or algorithm, and should only implement code which is required to load the provider and algorithms. Strictly no GUI related code should be used here, that MUST be moved out of initializers and deferred to the plugin's initGui implementation.
46 lines
1.3 KiB
Python
46 lines
1.3 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
***************************************************************************
|
|
__init__.py
|
|
---------------------
|
|
Date : July 2013
|
|
Copyright : (C) 2013 by Hugo Mercier
|
|
Email : hugo dot mercier at oslandia dot 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. *
|
|
* *
|
|
***************************************************************************
|
|
"""
|
|
|
|
__author__ = 'Hugo Mercier'
|
|
__date__ = 'July 2013'
|
|
__copyright__ = '(C) 2013, Hugo Mercier'
|
|
# This will get replaced with a git SHA1 when you do a git archive
|
|
__revision__ = '$Format:%H$'
|
|
|
|
import os
|
|
|
|
|
|
class Test:
|
|
|
|
def __init__(self, iface):
|
|
pass
|
|
|
|
def initGui(self):
|
|
assert False
|
|
|
|
def initProcessing(self):
|
|
pass
|
|
|
|
def unload(self):
|
|
pass
|
|
|
|
def classFactory(iface):
|
|
# load Test class from file Test
|
|
return Test(iface)
|