[processing] modified saga checking to support 2.0.8

This commit is contained in:
Victor Olaya 2013-09-01 11:38:05 +02:00
parent a10598733e
commit 99525c3c0f

View File

@ -149,8 +149,8 @@ class SagaUtils:
try:
from processing import runalg
result = runalg("saga:thiessenpolygons", points(), None)
if not os.path.exists(result['POLYGONS']):
result = runalg("saga:polygoncentroids", points(), False, None)
if result is None or not os.path.exists(result['CENTROIDS']):
return "It seems that SAGA is not correctly installed in your system.\nPlease install it before running SAGA algorithms."
except:
s = traceback.format_exc()