mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Followup 297f466 pep8
This commit is contained in:
parent
cc50157ab8
commit
5376cbf35e
@ -31,6 +31,7 @@ from processing.core.GeoAlgorithm import GeoAlgorithm
|
||||
from processing.preconfigured.PreconfiguredAlgorithmDialog import PreconfiguredAlgorithmDialog
|
||||
from processing.preconfigured.PreconfiguredAlgorithm import PreconfiguredAlgorithm
|
||||
|
||||
|
||||
class NewPreconfiguredAlgorithmAction(ContextAction):
|
||||
|
||||
def __init__(self):
|
||||
|
@ -31,6 +31,7 @@ from processing.modeler.ModelerUtils import ModelerUtils
|
||||
from processing.core.GeoAlgorithm import GeoAlgorithm
|
||||
import json
|
||||
|
||||
|
||||
class PreconfiguredAlgorithm(GeoAlgorithm):
|
||||
|
||||
def __init__(self, descriptionFile):
|
||||
|
@ -83,6 +83,7 @@ class PreconfiguredAlgorithmDialog(AlgorithmDialog):
|
||||
self.tr('Wrong or missing parameter values'))
|
||||
self.close()
|
||||
|
||||
|
||||
class SettingsPanel(QWidget):
|
||||
|
||||
def __init__(self):
|
||||
|
@ -54,12 +54,10 @@ class PreconfiguredAlgorithmProvider(AlgorithmProvider):
|
||||
self.algs.append(alg)
|
||||
|
||||
def getIcon(self):
|
||||
return QIcon(os.path.join(os.path.dirname(os.path.dirname(__file__)) , 'images', 'alg.png'))
|
||||
return QIcon(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'images', 'alg.png'))
|
||||
|
||||
def getName(self):
|
||||
return 'preconfigured'
|
||||
|
||||
def getDescription(self):
|
||||
return self.tr('Preconfigured algorithms', 'PreconfiguredAlgorithmProvider')
|
||||
|
||||
|
||||
|
@ -20,6 +20,7 @@
|
||||
import os
|
||||
from processing.tools.system import mkdir, userFolder
|
||||
|
||||
|
||||
def preconfiguredAlgorithmsFolder():
|
||||
folder = unicode(os.path.join(userFolder(), 'preconfigured'))
|
||||
mkdir(folder)
|
||||
@ -34,4 +35,3 @@ def algAsDict(alg):
|
||||
for out in alg.outputs:
|
||||
outputs[out.name] = out.value
|
||||
return {"parameters": params, "outputs": outputs, "algname": alg.commandLineName()}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user