mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
Fix SAGA detection on some Debian/Ubuntu systems (fixes #12335)
This commit is contained in:
parent
6215f773e2
commit
eaf17e56c2
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user