[GRASS-user] grass-python scripting error
Milton Cezar Ribeiro
miltinho.astronauta at gmail.com
Fri May 29 14:58:31 EDT 2009
Dear friends
Sorry for my delay:
Here you have the results on a AMD64/Vista:
C:\Python25>python
Python 2.5.4 (r254:67916, Dec 23 2008, 15:19:34) [MSC v.1400 64 bit (AMD64)]
on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.platform
'win32'
>>> import os
>>> os.name
'nt'
>>> os.environ['OS']
'Windows_NT'
>>> import platform
>>> platform.system()
'Windows'
>>>
Cheers
milton
2009/5/26 Hamish <hamish_b at yahoo.com>
>
> > could you ... find and run python.exe from a cmd.exe DOS box and
> > post the results of typing the following commands at the
> > '>>>' prompt:
> ....
> > import os
> > os.name
> > os.environ
>
> actually don't bother to post the long result from os.environ, just:
>
> > os.environ['OS']
>
>
> In 32bit linux I get:
> >>> sys.platform
> 'linux2'
> >>> os.name
> 'posix'
> >>> os.environ['OS']
> [error because it's not set]
> >>> platform.system()
> 'Linux'
>
>
> Hamish
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20090529/8d897650/attachment.html
More information about the grass-user
mailing list