[IronPython] importing the os module

Jonathan Jacobs korpse-ironpython at kaydash.za.net
Mon Oct 17 00:25:24 PDT 2005


Papanii Okai wrote:
> Hmm, I tend to disagree with you on the fact that in standard python os 
> is not a built in module. Even though nt is built in, the os modules 
> also built in. But what is confusing is that Anthony posted that he was 
> able to import the os module like so…

Anthony is probably making use of site.py (which can be found in 
<path_to_ironpython>\bin\Lib) to make the Python stdlib accessible to 
IronPython. (That is, unless I'm mistaken.)

Jim mentions[1] a short site.py in one of his recent emails which is 
probably just what you're looking for.

Hope this helps.

[1] 
http://lists.ironpython.com/pipermail/users-ironpython.com/2005-October/001092.html

--
Jonathan

When you meet a master swordsman,
show him your sword.
When you meet a man who is not a poet,
do not show him your poem.
                 -- Rinzai, ninth century Zen master


More information about the users mailing list