[GRASS-dev] Re: [GRASS GIS] #945: wxGUI: g.setproj fails on wingrass

GRASS GIS trac at osgeo.org
Sat Feb 20 11:58:50 EST 2010


#945: wxGUI: g.setproj fails on wingrass
---------------------------+------------------------------------------------
  Reporter:  hamish        |       Owner:  martinl            
      Type:  defect        |      Status:  assigned           
  Priority:  major         |   Milestone:  6.4.0              
 Component:  wxGUI         |     Version:  svn-releasebranch64
Resolution:                |    Keywords:  g.setproj, wingrass
  Platform:  MSWindows XP  |         Cpu:  x86-32             
---------------------------+------------------------------------------------
Comment (by glynn):

 Replying to [comment:3 hamish]:
 > with the 6.4 nightly wingrass binary r41114 wxGUI, I get this error
 popup when I try to start g.setproj from the Config->Manage projections
 menu:
 >
 {{{
 __ \"c:/Program Files/GRASS-64-SVN\etc\grass-run.bat\" __

 Windows cannot find "\"c:Program Files/GRASS-64-SVN\etc\grass-run.bat\"".
 }}}

 IOW, OnXTerm() is still as broken as it always was. In particular, I note:
 {{{
             cmdlist = ["cmd.exe", "/c", 'start "%s"' % runbat, command]
 }}}
 Try using:
 {{{
             cmdlist = ["start", runbat, command]
 }}}
 then running the command with shell=True (if this isn't already set, which
 it should be).

 Also try not using gcmd.Command(). It appears to be intended to run GRASS
 commands, and neither cmd.exe nor start are GRASS commands. It's also
 insanely hard to figure out what's going on once you get into
 gcmd.Command().

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


More information about the grass-dev mailing list