We don't ship the Python standard libraries (written in Python) w/ IronPython and os is part of the standard libraries. IronPython just implements the built-in libraries which those standard libraries build upon.
The easiest way to solve this for you would be to copy the contents of the Lib directory below CPython on your USB drive to the Lib directory in the IronPython folder. Alternately you can set the environment variable IRONPYTHONPATH to point to the lib directory below CPython. Once you do that import os should work. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Jensen Sent: Tuesday, April 17, 2007 5:22 PM To: [email protected] Subject: [IronPython] import os This is a very simple and obvious question. However, I am puzzled. I cannot do "import os" in ipy 1.0 or 1.1. Apparently, I have to import it from cpython according to codeplex? When I try importing ftplib, it says there is no os module. Why was an import of the os module not implemented? It would seem there would be numerous modules dependent on it. I am using an ironpython1.1 folder which I carry with me on a usb drive. I did not "install" it on a local machine, although I did think I would have to because I can carry the regular python 2.4 on the usb drive. I cannot find ironpython documents or commentaries which mention the apparent inability to import the os module. David Jensen Apartment 412 414 West 120th Street New York, New York 10027 212-866-7094 646-245-2654 (cell) 206-984-4900 (fax to email) [EMAIL PROTECTED] _______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
