Pydev finds out about the interpreter by running
python_executable_provided
plugins/org.python.pydev_xxx/PySrc/interpreterInfo.py

And gets the actual executable in that script accessing 'import
sys;print(sys.executable)"... in your case, your custom interpreter
should have the sys.executable as itself, but it appears it's pointing
to /usr/bin/python instead (so, your custom interpreter should be
fixed to handle that).

Cheers,

Fabio

On Fri, Jan 21, 2011 at 5:30 PM, Michael Wand <michael.w...@kit.edu> wrote:
> Hello,
>
> I've got a strange problem with PyDev. What I want to do is the following:
> I've got a program which embeds Python, i.e. creates its own executable which
> can run Python programs. I want to use this program (let's call it "Ham" for
> descriptive purposes) with PyDev, so I go to
> Window/Preferences/PyDev/Interpreter - Python, click on "New", and give the
> path to the interpreter executable (say, /home/mwand/workspace/Ham/Ham), and a
> name. When I click "OK", the system asks for folders to be added to the system
> pythonpath, it finds a lot of folders in /usr/lib, which I leave unchanged.
>
> There are no error messages, but after this process, the list of Python
> interpreters show me that the newly configured interpreter has got the desired
> name, but the location is standard /usr/bin/python. Consequently, when I try
> to run a program, the standard interpreter is used, which I don't want!
>
> Is anyone out there who can tell me what I'm doing wrong? Could it be that due
> to some obscure reason, my custom program is not recognized as Python
> interpreter, even though when I start it from the console (with or without
> parameters), it works perfectly?
>
> Many greetings
>
> - Michael
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> Pydev-users mailing list
> Pydev-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pydev-users
>

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to