浏览代码

gmodeler: fix python export - main() is expected to be called with two arguments (#336)

Martin Landa 5 年之前
父节点
当前提交
18e9f3ddfe
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/gmodeler/model.py

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

@@ -2677,7 +2677,7 @@ if __name__ == "__main__":
         if properties.get('overwrite'):
             self.fd.write('    os.environ["GRASS_OVERWRITE"] = "1"\n')
 
-        self.fd.write('    sys.exit(main())\n')
+        self.fd.write('    sys.exit(main(options, flags))\n')
 
     def _writePythonItem(self, item, ignoreBlock=True, variables={}):
         """Write model object to Python file"""