p.db 636 B

12345678910111213141516171819202122232425262728293031323334353637
  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. if [ -z "$PYTHONPATH" ] ; then
  22. PYTHONPATH="$GISBASE/etc/wxpython"
  23. else
  24. PYTHONPATH="$GISBASE/etc/wxpython:$PYTHONPATH"
  25. fi
  26. export PYTHONPATH
  27. "$GRASS_PYTHON" "$GISBASE/etc/wxpython/gui_modules/dbm.py" "$GIS_OPT_TABLE"
  28. exit 0