[GRASS-dev] Re: [GRASS GIS] #1101: WinGrass7 + scripts are not found in the command line

GRASS GIS trac at osgeo.org
Wed Sep 21 15:53:18 EDT 2011


#1101: WinGrass7 + scripts are not  found in the command line
-------------------------------+--------------------------------------------
 Reporter:  hellik             |       Owner:  grass-dev@…              
     Type:  defect             |      Status:  new                      
 Priority:  normal             |   Milestone:  7.0.0                    
Component:  Packaging          |     Version:  svn-trunk                
 Keywords:  wingrass, scripts  |    Platform:  MSWindows Vista          
      Cpu:  Unspecified        |  
-------------------------------+--------------------------------------------

Comment(by hellik):

 Replying to [comment:13 glynn]:
 >
 > I'm forgetting that we're dealing with bash here. bash ignores PATHEXT,
 and it doesn't use file extensions either (except perhaps .bat?).
 >
 > OTOH, cmd.exe uses PATHEXT and file extensions but ignores the shebang.
 And, on Windows, GRASS' G_spawn(), C's system() and Python's os.system()
 and subprocess.Popen() all use cmd.exe, not bash.
 >

 at the moment wingrass7 "GRASS 7.0.SVN with MSYS" is started in the
 following way:

 set_shell_start_grass70svn.bat is invoked


 {{{

 @echo off
 rem
 #########################################################################
 rem #
 rem # File dynamically created by NSIS installer script
 rem #
 rem
 #########################################################################
 rem #
 rem # Set SHELL and start GRASS
 rem #
 rem
 #########################################################################

 rem *******Set SHELL***********

 set SHELL="C:\Program Files\GRASS 7.0.SVN\msys\bin\sh.exe"

 "C:\Program Files\GRASS 7.0.SVN\grass70svn.bat"

 }}}

 grass70svn.bat

 {{{

 @echo off
 rem
 #########################################################################
 rem #
 rem # File dynamically created by NSIS installer script;
 rem #
 rem
 #########################################################################
 rem #
 rem # GRASS Initialization
 rem #
 rem
 #########################################################################

 rem Set GRASS Installation Directory Variable
 set GISBASE=C:\Program Files\GRASS 7.0.SVN

 set PATH=C:\Program Files\R\R-2.13.0\bin;%PATH%

 call "%GISBASE%\etc\env.bat"

 cd "%USERPROFILE%"
 %GRASS_PYTHON% "%WINGISBASE%\grass70.py" %*

 }}}

 and a cmd.exe-windows is opened as command line and the wy-gui is starting

 Helmut

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



More information about the grass-dev mailing list