Skip to content

Commit

Permalink
Fix SAGA detection on some Debian/Ubuntu systems (fixes #12335)
Browse files Browse the repository at this point in the history
(cherry picked from commit eaf17e5)
  • Loading branch information
wonder-sk committed Jul 7, 2015
1 parent 507b9f2 commit 230ff6f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/plugins/processing/algs/saga/SagaUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 230ff6f

Please sign in to comment.