How can i find the fully qualified file name (path+file name) to a Python file that is selected in Eclipse browser?
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...
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.
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().
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.