wxgui 683 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/sh
  2. #% Module
  3. #% description: wxPython-based GUI for GRASS GIS
  4. #% keywords: general, gui
  5. #% End
  6. #%option
  7. #% key: workspace
  8. #% type: string
  9. #% description: Name of workspace file (.grc)
  10. #% required : no
  11. #%End
  12. if [ -z "$GISBASE" ] ; then
  13. echo "You must be in GRASS GIS to run this program." 1>&2
  14. exit 1
  15. fi
  16. if [ $# -eq 0 ] ; then
  17. python "$GISBASE/etc/wxpython/wxgui.py" &
  18. exit 0
  19. fi
  20. if [ "$1" != "@ARGS_PARSED@" ] ; then
  21. exec g.parser "$0" "$@"
  22. fi
  23. if test -n "$GIS_OPT_WORKSPACE" ; then
  24. # load workspace file
  25. python "$GISBASE/etc/wxpython/wxgui.py" "--workspace" "$GIS_OPT_WORKSPACE" &
  26. else
  27. python "$GISBASE/etc/wxpython/wxgui.py" &
  28. fi
  29. exit 0