This project has moved. For the latest updates, please go here.

How to add new Launcher...

Sep 18, 2012 at 1:47 AM


I knew, there are only 3 launchers - "IronPython (.NET)", "Django", "Standard Python". (I don't care Interpreters.)

Are there any method to add user-defined launcher?

Sep 18, 2012 at 3:00 AM

Yes, you just need to implement an IPythonLauncherProvider which creates the IProjectLauncher which will do the actual launching.  The IPythonLauncherProvider is exported via MEF.  You can see the implementation of the default launcher provider here:

To get this loaded you just need to create a new VS extension which references the PTVS binaries and then make sure that it's source.extension.vsixmanifest file registers the assembly as an MefComponent (like the |%CurrentProject%| registration here:

From there it should be loaded into the list and be called when configured as the launcher for a project.