Hi all,<div><br></div><div>I have GRASS 6.4.3svn installed in my machine running Windows 7. Also in my machine i installed Python 2.7.3 for Windows.</div><div>Now i need to call GRASS libraries from Python and not within the Python shell in GRASS GUI itself. I set the environment variables</div>
<div>in the env.bat for this. But connection fails. This is the env.bat i have:</div><div><br></div><div><div>set GISBASE=C:\Program Files\GRASS GIS 6.4.3svn</div><div><br></div><div>set HOME=%USERPROFILE%</div><div><br></div>
<div>set LD_LIBRARY_PATH = %GISBASE%\lib</div><div><br></div><div>set PATH= %GISBASE%\etc;%PATH%</div><div>set PATH=%GISBASE%\Python27;%PATH%</div><div>set PATH=%GISBASE%\lib;%GISBASE%\bin;%GISBASE%\extralib;%GISBASE%\msys\bin;%PATH%</div>
<div>set PATH=C:\Python27;%PATH%</div><div><br></div><div>set PYTHONLIB= C:\Python27;%PYTHONLIB%</div><div>set PYTHONPATH= %GISBASE%\etc\python;%PYTHONPATH%</div><div> </div><div><br></div><div>rem Environmental variables for GRASS stand-alone installer</div>
<div><br></div><div>set GRASS_WISH=%GISBASE%\extrabin\wish.exe</div><div>set GRASS_PYTHON=python</div><div><br></div><div><br></div><div>set GRASS_PROJSHARE=%GISBASE%\proj</div><div>set GRASS_HTML_BROWSER=explorer</div><div>
set GRASS_SH=%GISBASE%\msys\bin\sh.exe</div><div><br></div><div>set PYTHONHOME=%GISBASE%\Python27</div><div>set GDAL_DATA=%GISBASE%\share\gdal</div><div>set PROJ_LIB=%GISBASE%\proj</div><div>set GEOTIFF_CSV=%GISBASE%\share\epsg_csv</div>
<div><br></div><div>set PATH=%GISBASE%\msys\bin;%PATH%</div><div>set PATH=%GISBASE%\extrabin;%GISBASE%\extralib;%PATH%</div><div>set PATH=%GISBASE%\tcl-tk\bin;%GISBASE%\sqlite\bin;%GISBASE%\gpsbabel;%PATH%</div><div>set PATH=%GISBASE%\bin;%PATH%</div>
<div><br></div><div>rem Path to the python directory --</div><div>rem set PYTHONHOME=%GISBASE%\Python27 </div><div>rem if "x%GRASS_PYTHON%" == "x" set GRASS_PYTHON=python </div></div><div><br></div><div>
Can somebody help me in rectifying the problem.</div><div><br></div><div>Cheers, Brian.</div>