Ticket #53231: SagaUtils.py.diff

File SagaUtils.py.diff, 636 bytes (added by edhackett, 8 years ago)
  • SagaUtils.py

    old new  
    7272
    7373def sagaPath():
    7474    folder = ProcessingConfig.getSetting(SAGA_FOLDER)
    75     if not os.path.isdir(folder):
    76         folder = None
    77         ProcessingLog.addToLog(ProcessingLog.LOG_WARNING,
    78                                'Specified SAGA folder does not exist. Will try to find built-in binaries.')
    7975    if folder is None or folder == '':
    8076        folder = findSagaFolder()
    81 
     77        if folder is not None:
     78            ProcessingConfig.setSettingValue(SAGA_FOLDER, folder)
    8279    return folder or ''
    8380
    8481