I need to run a Python file in Eclipse in an another running process, using a different Python interpreter, not that one that is configured in Eclipse.
Regards,
Attila
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, take a look at: org.python.pydev.debug.ui.launching.LaunchShortcut and its superclass: AbstractLaunchShortcut. Basically, from a selection you get an IAdaptable, where you use: adaptable.getAdapter(IFile.class). That result has the Eclipse file abstraction...
You can then get the actual location from file.getRawLocation().toOSString().
Cheers,
Fabio
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
How can i find the fully qualified file name (path+file name) to a Python file that is selected in Eclipse browser?
Thanks,
Attila
You can see the file properties (alt+enter): location.
Now, what exactly do you want with that? There's a plugin that opens it in the explorer ( https://sourceforge.net/projects/startexplorer/ ) if that's what you want...
Cheers,
Fabio
I mean programmatically, in an Eclipse plug-in.
I need to run a Python file in Eclipse in an another running process, using a different Python interpreter, not that one that is configured in Eclipse.
Regards,
Attila
Ok, take a look at: org.python.pydev.debug.ui.launching.LaunchShortcut and its superclass: AbstractLaunchShortcut. Basically, from a selection you get an IAdaptable, where you use: adaptable.getAdapter(IFile.class). That result has the Eclipse file abstraction...
You can then get the actual location from file.getRawLocation().toOSString().
Cheers,
Fabio