Skip to content
Permalink
Browse files

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
volayaf committed Jun 8, 2012
1 parent 42d60c7 commit 580124de946910c452346529aec0165337567f9c
@@ -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)
@@ -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__)

This file was deleted.

@@ -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":

0 comments on commit 580124d

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