p.db 521 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/sh
  2. #%Module
  3. #% description: Start stand-alone attribute table manager
  4. #% keywords: database
  5. #%End
  6. #%Option
  7. #% key: table
  8. #% type: string
  9. #% required: yes
  10. #% multiple: no
  11. #% description: Table name
  12. #%End
  13. if [ -z "$GISBASE" ] ; then
  14. echo "You must be in GRASS GIS to run this program." 1>&2
  15. exit 1
  16. fi
  17. if [ "$1" != "@ARGS_PARSED@" ] ; then
  18. exec g.parser "$0" "$@"
  19. fi
  20. # CODE GOES HERE
  21. PYTHONPATH="$GISBASE/etc/wxpython"
  22. export PYTHONPATH
  23. python $PYTHONPATH/gui_modules/dbm.py $GIS_OPT_TABLE
  24. exit 0