[IronPython] importing the os module

Anthony Tarlano mailinglist.account at gmail.com
Sat Oct 15 13:11:45 CEST 2005


Double check your setup, since here is what I get importing os:

IronPython 0.9.3 on .NET 2.0.50215.44
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import os
>>> dir(os)
['AttributeError', 'Equals', 'False', 'GetHashCode', 'GetType',
'ImportError', '
MakeNew', 'NameError', 'None', 'ToString', 'True', '_', '__all__',
', '__dict__', '__doc__', '__file__', '__name__', '_copy_reg', '_execvpe',
sts', '_exit', '_get_exports_list', '_make_stat_result',
'_pickle_stat_result', '_pickle_statvfs_result', 'altsep', 'curdir',
'dict', 'dir', 'environ', 'error', 'eval', 'execl', 'execle', 'execlp',
e', 'execvp', 'execvpe', 'extsep', 'getcwd', 'getenv', 'linesep', 'list',
ir', 'makedirs', 'name', 'pardir', 'path', 'pathsep', 'remove',
'removedirs', 'r
enames', 'sep', 'spawnl', 'stat', 'stat_result', 'sys', 'unlink', 'waitpid',



On 10/15/05, Papanii Okai <papanii.okai at gmail.com> wrote:
>  Hi Guys,
> I was testing out Iron Python and I was trying to test out the OS module
> but I got the error ..
>  TraceBack (most recent call last)
> At <shell>
> ImportError: No module named os..
>  Obviously it doesn't exist. Thus is there any means to get around this?
>  Thank you
> --Papanii
> _______________________________________________
> users mailing list
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20051015/4ff04503/attachment.html>

More information about the Ironpython-users mailing list