use python modules

Jan 16, 2008 at 11:50 AM
How can I use python 2.5 modules at the same time with .NET in IronPython Studio?

Is his only way?

import sys
sys.path.append("C:\\Python\\Lib")

Can I setup environment variable in windows like this to get python modules automatically?
IRONPYTHONPATH=C:\Python25\Lib


Thanks!
Feb 19, 2008 at 1:19 PM
You can add those two lines to the site.py file in C:\IronPython-<YourVersion>\Lib to get Python 2.5 modules in IronPython code. I like to put them right below the small list of imports.