Skip to content
Permalink
Browse files

Fix SAGA detection on some Debian/Ubuntu systems (fixes #12335)

  • Loading branch information
wonder-sk committed Jun 19, 2015
1 parent 6215f77 commit eaf17e56c2ff6c74eb43319096a177fc301d5a39
Showing with 4 additions and 1 deletion.
  1. +4 −1 python/plugins/processing/algs/saga/SagaUtils.py
@@ -112,7 +112,10 @@ def getSagaInstalledVersion(runSaga=False):
elif isMac():
commands = [os.path.join(sagaPath(), "saga_cmd"), "-v"]
else:
commands = ["saga_cmd", "-v"]
# for Linux use just one string instead of separated parameters as the list
# does not work well together with shell=True option
# (python docs advices to use subprocess32 instead of python2.7's subprocess)
commands = ["saga_cmd -v"]
proc = subprocess.Popen(
commands,
shell=True,

0 comments on commit eaf17e5

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