views:

850

answers:

1

I have built the IronPythonIntegration solution that comes with the Visual Studio 2005 SDK (as explained at http://www.izume.com/2007/10/13/integrating-ironpython-with-visual-studio-2005), and I can now use IronPython projects inside Visual Studio 2005. However, to let a Python file import from the standard library I need to include these two lines first:

import sys
sys.path.append('c:\Python24\lib')

and similarly for any other folders I want to be able to import from.

Does anyone know a way to set up import paths so that all IronPython projects automatically pick them up?

+2  A: 

Set the environment variable IRONPYTHONPATH in your operating system to 'c:\Python24\lib'. (Or anywhere else you need).

Ali A
I've done that already. It works in the ipy.exe shell, but has no effect in Visual Studio.
Charles Anderson
Yikes, then I guess you'll have to do it manually.
Ali A