[IronPython] importing the os module

Jonathan Jacobs korpse-ironpython at kaydash.za.net
Mon Oct 17 09:25:24 CEST 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.



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 Ironpython-users mailing list