Skip to content

Commit 580124d

Browse files
author
volayaf
committed
fixed problem with boolean values in scripts (#5755)
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@233 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
1 parent 42d60c7 commit 580124d

File tree

4 files changed

+2
-7
lines changed

4 files changed

+2
-7
lines changed

src/sextante/SextantePlugin.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
from sextante.gui.ResultsDialog import ResultsDialog
1414
from sextante.about.AboutDialog import AboutDialog
1515
import subprocess
16-
from sextante.core.SextanteExternalAppsConfigurer import SextanteExternalAppsConfigurer
17-
16+
1817
cmd_folder = os.path.split(inspect.getfile( inspect.currentframe() ))[0]
1918
if cmd_folder not in sys.path:
2019
sys.path.insert(0, cmd_folder)

src/sextante/pymorph/mmorph.py

-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@
117117
from pymorph_version import __version__, __version_info__
118118

119119
import sys, os
120-
from sextante.script.ProgressAccessor import ProgressAccessor
121120
from PyQt4.uic.Compiler.qtproxies import QtGui
122121

123122
mydir = os.path.dirname(__file__)

src/sextante/script/ProgressAccessor.py

-3
This file was deleted.

src/sextante/script/ScriptAlgorithm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def processParameterLine(self,line):
100100
elif tokens[1].lower().strip().startswith("selection"):
101101
options = tokens[1].strip()[len("selection"):].split(";")
102102
param = ParameterSelection(tokens[0], desc, options);
103-
elif tokens[1].lower().strip() == "boolean":
103+
elif tokens[1].lower().strip().startswith("boolean"):
104104
default = tokens[1].strip()[len("boolean")+1:]
105105
param = ParameterBoolean(tokens[0], desc, default)
106106
elif tokens[1].lower().strip() == "extent":

0 commit comments

Comments
 (0)