I debugged a bit deeper with pdb and found this:
(Pdb)
> c:\osgeo4w\apps\grass\grass-~1.0sv\etc\python\grass.py(210)parser()
-> os.execvp("g.parser.exe", [name] + argv)
(Pdb) s
==================== snip ===============================================
> c:\warmerda\release\apps\python25\lib\os.py(389)_execvpe()
-> func(fullname, *argrest)
(Pdb) p fullname
'c:\\osgeo4w\\bin\\g.parser.exe'
(Pdb) PATH
['c:\\osgeo4w\\bin', 'C:\\OSGeo4W/apps/grass/grass-6.4.0svn\\bin', 'C:\\OSGeo4W/
apps/grass/grass-6.4.0svn\\lib', 'C:\\OSGeo4W\\bin', 'C:\\Perl\\bin\\', 'C:\\WIN
DOWS\\system32', 'C:\\WINDOWS', 'C:\\WINDOWS\\System32\\Wbem', 'C:\\Perl\\bin\\'
,'C:\\WINDOWS\\system32', 'C:\\WINDOWS', 'C:\\WINDOWS\\System32\\Wbem']There is no c:\osgeo4w\bin\g.parser.exe but there is a C:\OSGeo4W\apps\grass\grass-6.4.0svn\bin\g.parser.exe. > -----Original Message----- > From: Moskovitz, Bob > Sent: Monday, June 22, 2009 4:17 PM > To: Moskovitz, Bob; Glynn Clements > Cc: Grass-User (E-mail) > Subject: RE: [GRASS-user] Problems with GRASS python code in osgeo4w > > > I also wanted to add that I did run the program like this: > c:\osgeo4w\apps\grass\grass-6.4.0svn\scripts\m.dipslope.py --help > > > -----Original Message----- > > From: [email protected] > > [mailto:[email protected]]on Behalf Of > Moskovitz, Bob > > Sent: Monday, June 22, 2009 4:07 PM > > To: Glynn Clements > > Cc: Grass-User (E-mail) > > Subject: RE: [GRASS-user] Problems with GRASS python code in osgeo4w > > > > > > There is no etc/python/grass/script/core.py. Just > > etc\python\grass.py. Here is a part of a pdb debug session: > > > > > > c:\osgeo4w\apps\grass\grass-~1.0sv\etc\python\grass.py(208)parser() > > -> if sys.platform == "win32": > > (Pdb) > > > > c:\osgeo4w\apps\grass\grass-~1.0sv\etc\python\grass.py(209)parser() > > -> try: > > (Pdb) > > > > c:\osgeo4w\apps\grass\grass-~1.0sv\etc\python\grass.py(210)parser() > > -> os.execvp("g.parser.exe", [name] + argv) > > (Pdb) p [name] + argv > > ['c:\\osgeo4w\\apps\\grass\\grass-6.4.0svn\\scripts\\m.dipslop > > e.py', 'c:\\osgeo > > 4w\\apps\\grass\\grass-6.4.0svn\\scripts\\m.dipslope.py'] > > (Pdb) > > > > > _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
