12345678910111213141516171819202122232425262728293031323334353637 |
- #!/bin/sh
- #%Module
- #% description: Start stand-alone attribute table manager
- #% keywords: database
- #%End
- #%Option
- #% key: table
- #% type: string
- #% required: yes
- #% multiple: no
- #% description: Table name
- #%End
- if [ -z "$GISBASE" ] ; then
- echo "You must be in GRASS GIS to run this program." 1>&2
- exit 1
- fi
- if [ "$1" != "@ARGS_PARSED@" ] ; then
- exec g.parser "$0" "$@"
- fi
- # CODE GOES HERE
- if [ -z "$PYTHONPATH" ] ; then
- PYTHONPATH="$GISBASE/etc/wxpython"
- else
- PYTHONPATH="$GISBASE/etc/wxpython:$PYTHONPATH"
- fi
- export PYTHONPATH
- "$GRASS_PYTHON" "$GISBASE/etc/wxpython/gui_modules/dbm.py" "$GIS_OPT_TABLE"
- exit 0
|