File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 5
5
from sextante .core .QGisLayers import QGisLayers
6
6
from sextante .gui .AlgorithmExecutor import AlgorithmExecutor
7
7
from sextante .core .SextanteConfig import SextanteConfig
8
+ from sextante .core .GeoAlgorithm import GeoAlgorithm
8
9
from sextante .core .SextanteLog import SextanteLog
9
10
from sextante .modeler .ModelerAlgorithmProvider import ModelerAlgorithmProvider
10
11
from sextante .ftools .FToolsAlgorithmProvider import FToolsAlgorithmProvider
@@ -246,8 +247,11 @@ def alghelp(name):
246
247
247
248
248
249
@staticmethod
249
- def runalg (name , * args ):
250
- alg = Sextante .getAlgorithm (name )
250
+ def runalg (algOrName , * args ):
251
+ if isinstance (algOrName , GeoAlgorithm ):
252
+ alg = algOrName
253
+ else :
254
+ alg = Sextante .getAlgorithm (algOrName )
251
255
if alg == None :
252
256
print ("Error: Algorithm not found\n " )
253
257
return
You can’t perform that action at this time.
0 commit comments