пятница, 11 октября 2013 г., 21:29:07 UTC+4 пользователь ZyX написал:
> On Oct 11, 2013 9:18 PM, "Stanislav Golovanov" <[email protected]> wrote:
> 
> >
> 
> > Hello. I've stumbled on a problem that sys.executable python command inside 
> > Vim returns a Vim path, when it should return a Python path. Simple test 
> > case:
> 
> >
> 
> > :py import sys
> 
> > :py print sys.executable
> 
> > C:\Program Files (x86)\Vim\vim74\gvim.exe
> 
> >
> 
> > Should be:
> 
> > C:\Python27\python.exe
> 
> What makes you think so? File python.exe is not used by vim. You may remove 
> it completely leaving relevant DLL library and vim will continue to work with 
> +python and so will be plugins written in python. Why should output of 
> sys.executable change if you remove irrelevant python.exe?
> 
> 
> > vim --version: http://pastie.org/8395257
> 
> >
> 
> > --
> 
> > --
> 
> > You received this message from the "vim_dev" maillist.
> 
> > Do not top-post! Type your reply below the text you are replying to.
> 
> > For more information, visit http://www.vim.org/maillist.php
> 
> >
> 
> > ---
> 
> > You received this message because you are subscribed to the Google Groups 
> > "vim_dev" group.
> 
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to [email protected].
> 
> > For more options, visit https://groups.google.com/groups/opt_out.

I've got your point. But since python manual 
(http://docs.python.org/2.7/library/sys.html?highlight=sys.executable#sys.executable)
 says it should return a path to used interpreter or return None if it's unable 
to retrieve it. Is Vim counts as an interpreter for Python (which is strange)? 
And whats the point to return a path to vim since it cant be used as a python 
interpreter?

There is a issue in YouCompleteMe plugin that references this: 
https://github.com/Valloric/YouCompleteMe/issues/581

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui