Skip to content

Commit

Permalink
gmodeler: fix python export - main() is expected to be called with tw…
Browse files Browse the repository at this point in the history
…o arguments (#336)
  • Loading branch information
landam committed Feb 10, 2020
1 parent 87c5295 commit 6952424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/wxpython/gmodeler/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2677,7 +2677,7 @@ def getParameterizedFlags(paramFlags, itemFlags):
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"""
Expand Down

0 comments on commit 6952424

Please sign in to comment.