浏览代码

wxGUI/gmodeler: fix loading models

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49496 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 年之前
父节点
当前提交
6bdb35fc67
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      gui/wxpython/gmodeler/model.py

+ 2 - 2
gui/wxpython/gmodeler/model.py

@@ -39,9 +39,9 @@ import wx
 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 @@ class Model(object):
                 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)