[GRASS-user] grass-python scripting error
    Hamish 
    hamish_b at yahoo.com
       
    Tue May 26 01:07:34 EDT 2009
    
    
  
> 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
      
    
    
More information about the grass-user
mailing list