Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
volayaf committed Jun 8, 2012
1 parent 42d60c7 commit 580124d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/sextante/SextantePlugin.py
Expand Up @@ -13,8 +13,7 @@
from sextante.gui.ResultsDialog import ResultsDialog
from sextante.about.AboutDialog import AboutDialog
import subprocess
from sextante.core.SextanteExternalAppsConfigurer import SextanteExternalAppsConfigurer


cmd_folder = os.path.split(inspect.getfile( inspect.currentframe() ))[0]
if cmd_folder not in sys.path:
sys.path.insert(0, cmd_folder)
Expand Down
1 change: 0 additions & 1 deletion src/sextante/pymorph/mmorph.py
Expand Up @@ -117,7 +117,6 @@
from pymorph_version import __version__, __version_info__

import sys, os
from sextante.script.ProgressAccessor import ProgressAccessor
from PyQt4.uic.Compiler.qtproxies import QtGui

mydir = os.path.dirname(__file__)
Expand Down
3 changes: 0 additions & 3 deletions src/sextante/script/ProgressAccessor.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/sextante/script/ScriptAlgorithm.py
Expand Up @@ -100,7 +100,7 @@ def processParameterLine(self,line):
elif tokens[1].lower().strip().startswith("selection"):
options = tokens[1].strip()[len("selection"):].split(";")
param = ParameterSelection(tokens[0], desc, options);
elif tokens[1].lower().strip() == "boolean":
elif tokens[1].lower().strip().startswith("boolean"):
default = tokens[1].strip()[len("boolean")+1:]
param = ParameterBoolean(tokens[0], desc, default)
elif tokens[1].lower().strip() == "extent":
Expand Down

0 comments on commit 580124d

Please sign in to comment.