jdhardy / IronPython.VisualStudio
IronPython extensions for Visual Studio 2010. This project has been superseded by IronPython Tools for Visual Studio (http://bit.ly/aWw3fL).
Clone this repository (size: 98.8 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/jdhardy/ironpython.visualstudio
| commit 18: | 0e48e2d3dbde |
| parent 17: | 89c3c3d028da |
| branch: | default |
| tags: | v0.4 |
Have the interactive intepreter read IRONPYTHONPATH.
9 months ago
Changed (Δ304 bytes):
raw changeset »
IronPython.VisualStudio.Repl/PythonConsoleHost.cs (6 lines added, 0 lines removed)
IronPython.VisualStudio.ReplWindow/IronPython.VisualStudio.ReplWindowPackage.cs (1 lines added, 1 lines removed)
Up to file-list IronPython.VisualStudio.Repl/PythonConsoleHost.cs:
| … | … | @@ -57,6 +57,12 @@ namespace IronPython.VisualStudio.Repl |
57 |
57 |
var pc = HostingHelpers.GetLanguageContext(Engine) as PythonContext; |
58 |
58 |
pc.SetModuleState(typeof(ScriptEngine), Engine); |
59 |
59 |
|
60 |
string path = Environment.GetEnvironmentVariable("IRONPYTHONPATH"); |
|
61 |
if(path != null) |
|
62 |
{ |
|
63 |
Engine.SetSearchPaths(path.Split(';')); |
|
64 |
} |
|
65 |
||
60 |
66 |
if(this.Runtime != null && this.Runtime.IO != null) |
61 |
67 |
{ |
62 |
68 |
this.Runtime.IO.SetOutput(this.replOutStream, Encoding.ASCII); |
Up to file-list IronPython.VisualStudio.ReplWindow/IronPython.VisualStudio.ReplWindowPackage.cs:
| … | … | @@ -29,7 +29,7 @@ namespace IronPython.VisualStudio.ReplWi |
29 |
29 |
// This attribute is needed to let the shell know that this package exposes some menus. |
30 |
30 |
[ProvideMenuResource("Menus.ctmenu", 1)] |
31 |
31 |
// This attribute registers a tool window exposed by this package. |
32 |
[ProvideToolWindow(typeof(IronPythonInteractive) |
|
32 |
[ProvideToolWindow(typeof(IronPythonInteractive), Style = Microsoft.VisualStudio.Shell.VsDockStyle.Tabbed, Window="34E76E81-EE4A-11D0-AE2E-00A0C90FFFC3")] |
|
33 |
33 |
[Guid(GuidList.guidIronPython_VisualStudio_ReplWindowPkgString)] |
34 |
34 |
public sealed class IronPython_VisualStudio_ReplWindowPackage : Package |
35 |
35 |
{ |
