variable for the python interpreter location

2009-03-27
2013-03-15
  • Leo Shklovskii

    Leo Shklovskii - 2009-03-27

    Is there a way I can use the python interpreter location as part of the path to the Main Module in a Pydev Launch?

    It looks like there are a lot of variables that I can use such as: ${workspace_loc} but what I really need is the path to the interpreter. The use case for this is that I'm trying to run a .py file that is in the PythonDir/Scripts folder.

    I can set it up as an explicit link to C:\Python25\Scripts\my-script.py for now, but I'd love to be able to do something like:

    ${python_loc}\Scripts\my-script.py

    so that it works with any python interpreter location and on other platforms.

    Or is there a better way to do what I'm trying to do?

     
    • Leo Shklovskii

      Leo Shklovskii - 2009-03-30

      Is this the right place to ask this question? Or is there a better spot for it? ie. maybe in a the feature request section?

       
      • Fabio Zadrozny

        Fabio Zadrozny - 2009-03-30

        That's the correct place to ask it... (sorry for the delay)

        Unfortunately, there's no such variable available (so, please, add a feature request for it: http://pydev.sourceforge.net/faq.html#how_do_i_report_a_feature_request )

        So, for now either you have to use one of the available ones (and make it relative to those) or you have to leave it fixed.

        Cheers,

        Fabio

         
        • Leo Shklovskii

          Leo Shklovskii - 2009-03-30

          Awesome, thanks for the response Fabio! You're doing an amazing job with PyDev!

          I'll add it as a feature request and I may spend some time trying to figure out where those variables live in Eclipse.

           

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

Sign up for the SourceForge newsletter:





No, thanks