[GRASS-SVN] r49496 - grass/trunk/gui/wxpython/gmodeler
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Dec 2 13:29:45 EST 2011
Author: martinl
Date: 2011-12-02 10:29:45 -0800 (Fri, 02 Dec 2011)
New Revision: 49496
Modified:
grass/trunk/gui/wxpython/gmodeler/model.py
Log:
wxGUI/gmodeler: fix loading models
Modified: grass/trunk/gui/wxpython/gmodeler/model.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/model.py 2011-12-02 18:27:55 UTC (rev 49495)
+++ grass/trunk/gui/wxpython/gmodeler/model.py 2011-12-02 18:29:45 UTC (rev 49496)
@@ -39,9 +39,9 @@
from wx.lib import ogl
from core.globalvar import ETCWXDIR
+from core import utils
from core.gcmd import GMessage, GException, GError, RunCommand, EncodeString, GWarning
from gmodeler.dialogs import ModelParamDialog
-from core.utils import CmdToTuple
from core.settings import UserSettings
from gui_core.forms import GUI
@@ -592,7 +592,7 @@
vlist = list()
if condText[0] == '`' and condText[-1] == '`':
# run command
- cmd, dcmd = CmdToTuple(condText[1:-1].split(' '))
+ cmd, dcmd = utils.CmdToTuple(condText[1:-1].split(' '))
ret = RunCommand(cmd,
read = True,
**dcmd)
More information about the grass-commit
mailing list