Dino Viehland wrote:

They’re in the nt module – usually w/ CPython the os module, which is written in Python, loads the appropriate module (nt/unix/etc…) and delegates to that. In IronPython 2.0 nt now implements both popen* and system. In 1.x we only support popen* and not system.


To clarify Dino's response slightly - if you make sure that the Python standard library is on your path then yhou can 'import os' in Python.

Michael

*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *John Case (Excell Data Corporation)
*Sent:* Wednesday, July 23, 2008 4:12 PM
*To:* [email protected]
*Subject:* [IronPython] os.system

Hello:

With IronPython, what do I use instead of os.system(‘dir’), or os.popen(‘dir’) to achieve the same result?

Thank you very much!

John Case

------------------------------------------------------------------------

_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/
http://www.trypython.org/
http://www.ironpython.info/
http://www.theotherdelia.co.uk/
http://www.resolverhacks.net/

_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to