4 *************************************************************************** 5 ProcessingPktoolsPlugin.py 8 Copyright : (C) 2015 by Pieter Kempeneers 9 Email : kempenep at gmail dot com 10 *************************************************************************** 12 * This program is free software; you can redistribute it and/or modify * 13 * it under the terms of the GNU General Public License as published by * 14 * the Free Software Foundation; either version 2 of the License, or * 15 * (at your option) any later version. * 17 *************************************************************************** 20 __author__ =
'Pieter Kempeneers' 21 __date__ =
'April 2015' 22 __copyright__ =
'(C) 2015, Pieter Kempeneers' 24 __revision__ =
'$Format:%H$' 31 from processing.core.Processing
import Processing
32 from pktools.pktoolsAlgorithmProvider
import pktoolsAlgorithmProvider
34 cmd_folder = os.path.split(inspect.getfile(inspect.currentframe()))[0]
36 if cmd_folder
not in sys.path:
37 sys.path.insert(0, cmd_folder)
42 self.
provider = pktoolsAlgorithmProvider()
45 Processing.addProvider(self.
provider)
48 Processing.removeProvider(self.
provider)