4

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?

Charles Anderson
  • 19,321
  • 13
  • 57
  • 73
  • Hey Charles, did you find a way to make this work with the latest IronPython studio? – Dennis Jul 17 '09 at 00:57
  • I've done very little with IronPython for a while now. (It's on a long list of projects I'd like to find some time for one day.) Which version of IronPythonStudio do you mean? – Charles Anderson Jul 29 '09 at 15:51

1 Answers1

2

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

Ali Afshar
  • 40,967
  • 12
  • 95
  • 109