[IronPython] importing os module

Martin Maly Martin.Maly at microsoft.com
Tue Nov 1 21:24:09 CET 2005


It is one of our open design issues to work out in the (hopefully near) future. It would definitely be useful to be able to use C-based Python modules with IronPython in some way.

Martin

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Gogins
Sent: Tuesday, November 01, 2005 8:08 AM
To: Discussion of IronPython
Subject: Re: [IronPython] importing os module

Why does it not play with C? Surely this would be immensely helpful.

Regards,
MIke

-----Original Message-----
From: "J. Merrill" <jvm_cop at spamcop.net>
Sent: Nov 1, 2005 10:06 AM
To: Discussion of IronPython <users at lists.ironpython.com>
Subject: Re: [IronPython] importing os module

IP does indeed "not play with C at all".  The plan, I believe, is to re-create some common C-based Python libraries (with C# or in Python) to ease the porting.

At 02:09 AM 11/1/2005, Liam Clarke wrote
>Now, my question on os is, what does IronPython have against pipe() ?
>Does IronPython not play with C at all?
>
>Regards,
>
>Liam Clarke
>
>
>On 11/1/05, Martin Maly <Martin.Maly at microsoft.com> wrote:
>>
>> You can set sys.path to point to CPython's Lib directory which
>> includes os
>> module:
>>
>> >>> import sys
>> >>> sys.path.append("C:\\Python24\Lib")
>> >>> import os
>> >>> os.name
>> 'nt'
>>
>> You can even put the first 2 lines into your site.py (located in
>> IronPython's Bin\lib directory)
>>
>> Martin
>[snip]


J. Merrill / Analytical Software Corp

_______________________________________________
users mailing list
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



_______________________________________________
users mailing list
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list