159 | | @echo off |
160 | | SET OSGEO4W_ROOT=C:\OSGeo4W |
161 | | PATH %OSGEO4W_ROOT%\bin;%PATH% |
162 | | for %%f in ("%OSGEO4W_ROOT%"\etc\ini\*.bat) do call "%%f" |
163 | | |
164 | | rem ######################################################################### |
165 | | rem # |
166 | | rem # GRASS Initialization |
167 | | rem # |
168 | | rem ######################################################################### |
169 | | |
170 | | set WINGISBASE=%OSGEO4W_ROOT%/apps/grass/grass-6.4xxx (change to the appropriate grass version) |
171 | | "%WINGISBASE%"\etc\init.bat %* |
| 162 | # Set the PYTHONPATH |
| 163 | PYTHONPATH="$GISBASE/etc/python:$PYTHONPATH" |
177 | | #! /bin/sh |
178 | | ############################################################################# |
179 | | # |
180 | | # MODULE: GRASS Initialization |
181 | | # AUTHOR(S): Justin Hickey - Thailand - jhickey@hpcc.nectec.or.th |
182 | | # PURPOSE: The source file for this shell script is in |
183 | | # lib/init/grass.src and is the grass startup script. It |
184 | | # requires a source file because the definition of GISBASE |
185 | | # is not known until compile time and is substituted from the |
186 | | # Makefile. Any command line options are passed to Init.sh. |
187 | | # COPYRIGHT: (C) 2000-2005 by the GRASS Development Team |
188 | | # |
189 | | # This program is free software under the GNU General Public |
190 | | # License (>=v2). Read the file COPYING that comes with GRASS |
191 | | # for details. |
192 | | # |
193 | | ############################################################################# |
194 | | |
195 | | trap "echo 'User break!' ; exit" 2 3 9 15 |
196 | | |
197 | | # Set the GISBASE variable |
198 | | GISBASE=/c/OSGeo4W/apps/grass/grass-6.4xxx (change to the appropriate grass version) |
199 | | export GISBASE |
200 | | |
201 | | # Set the PATH variable |
202 | | PATH="/osgeo4w/apps/tcl-tk/bin:$PATH" |
203 | | export PATH |
204 | | |
205 | | # Set the PYTHONPATH |
206 | | PYTHONPATH="$GISBASE/etc/python:$PYTHONPATH" |
207 | | |
208 | | exec "$GISBASE/etc/Init.sh" "$@" |
| 168 | /osgeo4w/apps/grass/bin/grass64 |