os.name

Fredrik Lundh fredrik at pythonware.com
Fri Jul 30 09:19:17 EDT 1999


Emile van Sebille <emile at fenx.com> wrote:
> >>> os.name
> 'nt'
> >>> os.environ('OS')
> Traceback (innermost last):
>   File "<pyshell#8>", line 1, in ?
>     os.environ('OS')
> AttributeError: no __call__ method defined

Gordon asked you to try os.environ['OS'],
not os.environ('OS') ;-)

</F>





More information about the Python-list mailing list