Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7298128 By: bewa
Thank you, Fabio, for your help! I have managed to launch it and was able to get the output from the script to the console. For all who want to know, here is my code: ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager(); ILaunchConfigurationType type = manager.getLaunchConfigurationType(org.python.pydev.debug.core.Constants.ID_PYTH ON_REGULAR_LAUNCH_CONFIGURATION_TYPE); ILaunchConfigurationWorkingCopy workingCopy = type.newInstance(null,"desc"); workingCopy.setAttribute(org.python.pydev.debug.core.Constants.ATTR_PROGRAM_ARGU MENTS, "argument"); workingCopy.setAttribute(org.python.pydev.debug.core.Constants.ATTR_PROJECT, "project"); workingCopy.setAttribute("org.eclipse.ui.externaltools.ATTR_LOCATION", "${workspace_loc:project/folder/something.py}"); ILaunchConfiguration configuration = workingCopy.doSave(); DebugUITools.launch(configuration, ILaunchManager.RUN_MODE); Not a best-practise regarding the code style, but... ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users