using os.system in IP studio

Mar 4, 2009 at 11:54 PM
I run this code inside IP studio (integrated mode)

import os
os.system("dir")

and it complains that os doesnt exists. Seems that the site.py isnt run automatically

So  I go

import

 

sys

 

sys.path.append(

"c:\program files\ironpython 2.0.1\lib")

import os
os.system("dir")

it complains that os.system does not exist . print dir(os) just after the import shows that all memebrs are there except system. Other os things work

I run the same code through the ipy command line and it works fine