Skip to content
Permalink
Browse files

[processing] Allow calling GdalUtils.runGdal w/o progress

  • Loading branch information
m-kuhn committed Apr 11, 2016
1 parent e873540 commit c7ddc4b229f2957397e0da59ec0a59d85b7ea91f
Showing with 4 additions and 1 deletion.
  1. +4 −1 python/plugins/processing/algs/gdal/GdalUtils.py
@@ -31,6 +31,7 @@
from PyQt.QtCore import QSettings
from qgis.core import QgsApplication
from processing.core.ProcessingLog import ProcessingLog
from processing.core.SilentProgress import SilentProgress

try:
from osgeo import gdal
@@ -44,7 +45,9 @@ class GdalUtils:
supportedRasters = None

@staticmethod
def runGdal(commands, progress):
def runGdal(commands, progress=None):
if progress is None:
progress=SilentProgress()
envval = os.getenv('PATH')
# We need to give some extra hints to get things picked up on OS X
isDarwin = False

0 comments on commit c7ddc4b

Please sign in to comment.
You can’t perform that action at this time.