Fully qualified Python file name

2009-04-29
2013-03-15
  • attila peterffy

    attila peterffy - 2009-04-29

    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

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2009-04-29

      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

       
    • attila peterffy

      attila peterffy - 2009-04-30

      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

       
      • Fabio Zadrozny

        Fabio Zadrozny - 2009-05-03

        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

         

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks