浏览代码

d.redraw: fix error when using wx monitor

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@69169 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 8 年之前
父节点
当前提交
9ef89691cc
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      scripts/d.redraw/d.redraw.py

+ 2 - 0
scripts/d.redraw/d.redraw.py

@@ -43,6 +43,8 @@ def main():
         grass.run_command('d.erase')
 
         for cmd in cmdList:
+            if cmd.startswith('#'):
+                continue
             grass.call(split(cmd))
     except IOError as e:
         grass.fatal(_("Unable to open file '%s' for reading. Details: %s") %