Ok I found out myself: sys.executable will give you the path to the
current python executable.

Jann Röder wrote:
> Ah I found the problem. My project runs a new instance of the python
> interpreter, and for some reason calling python from eclipse calls
> apple's python instead of the one that I installed. Is there a way in
> python to get the full path to the current interpreter executable ?
> 
> Jann
> 
> Jann Röder wrote:
>> No the project is set to python2.4 and has been like this from the
>> beginning. I really have no clue where this might come from. And I also
>> can't debug, because the debugger doesn't stop at breakpoints in the
>> library files.
>>
>> Fabio Zadrozny wrote:
>>> On 4/29/07, *Jann Röder* <[EMAIL PROTECTED]
>>> <mailto:[EMAIL PROTECTED]>> wrote:
>>>
>>>     Hi,
>>>     I have this problem that when I run my project from withon Pydev I get
>>>     this error:
>>>     assert _sre.MAGIC == MAGIC, "SRE module mismatch"
>>>
>>>     It doesn't occur when I run the project from the commandline. I
>>>     discovered, that Pydev ships an old version of the sre.py file in the
>>>     org.python.pydev.jython_1.3.2 folder. The only other versions of this
>>>     file originate from Apple's Python installation and my Python2.5 and
>>>     Python2.4 installations. I'm using Python2.4.4 for my project, and I am
>>>     pretty sure that I have set my PYTHONPATH correctly in Pydev.
>>>
>>>     Has anyone experienced this behavior before ?
>>>
>>>
>>> I've only seen this kind of error when the project is set to jython and
>>> you try to run it with python and vice-versa... So, in the project
>>> properties, is your project set as python? (you may try to erase your
>>> run configuration and create a new one, to be sure that nothing is still
>>> stored with a wrong config).
>>>
>>> As for the version shipped with pydev, it's only used internally for the
>>> jython scripting, and should not affect any of your external configurations.
>>>
>>> Cheers,
>>>
>>> Fabio
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by DB2 Express
>>> Download DB2 Express C - the FREE version of DB2 express and take
>>> control of your XML. No limits. Just data. Click to get it now.
>>> http://sourceforge.net/powerbar/db2/
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Pydev-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/pydev-users
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> Pydev-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/pydev-users
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Pydev-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pydev-users


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to