[GRASS-dev] [GRASS GIS] #1727: v.in.lines not work on Window 7 64 bit

GRASS GIS trac at osgeo.org
Thu Apr 25 22:07:59 PDT 2013


#1727: v.in.lines not work on Window 7 64 bit
--------------------------+-------------------------------------------------
  Reporter:  antonioall   |       Owner:  grass-dev@…              
      Type:  defect       |      Status:  reopened                 
  Priority:  critical     |   Milestone:  6.4.3                    
 Component:  Vector       |     Version:  svn-trunk                
Resolution:               |    Keywords:  v.in.lines, g.tempfile   
  Platform:  MSWindows 7  |         Cpu:  x86-64                   
--------------------------+-------------------------------------------------

Comment(by hamish):

 re. script-called-from-a-script failure from the 6.x wingrass Command Line
 and GIS.m, here's a patch.

 {{{
 Index: lib/init/init.bat
 ===================================================================
 --- lib/init/init.bat   (revision 56002)
 +++ lib/init/init.bat   (working copy)
 @@ -24,8 +24,10 @@

  set SAVEPATH=%PATH%
  rem
 -rem DON'T include the scripts/ directory in PATH -- The .bat files in the
 -rem   bin/ directory are what execute the scripts on Windows.
 +rem The .bat files in the \bin directory are what execute the scripts
 +rem  on Windows. The \scripts dir is added to the PATH automatically by
 +rem  the wxGUI; for Command Line mode and GIS.m, shell scripts called
 from
 +rem  other shell scripts need to have %GISBASE%\scripts in the PATH.
  rem

  if exist "%APPDATA%\GRASS6\env.bat" (
 @@ -121,9 +123,12 @@
         set PYTHONPATH=%PYTHONPATH%;%GISBASE%\etc\python
  )

 -if "%GRASS_GUI%"=="text" goto text
  if "%GRASS_GUI%"=="wxpython" goto wxpython

 +PATH=%PATH%;%GISBASE%\scripts
 +if "%GRASS_GUI%"=="text" goto text
 +
 +rem Tcl/Tk GUI setup
  if not "%GRASS_WISH%"=="" (
         "%GRASS_WISH%" "%GISBASE%\etc\gis_set.tcl"
  ) else (
 }}}

 any comments before committing it?


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1727#comment:19>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list