On 2014-03-12, Viktor Kojouharov wrote:
> I was hoping using the python sys.argv would return the vim path
> as the first item, but its filled with garbage? Is there any way
> to get it, either from a built-in viml function or from the python
> interface?

I don't know about Windows, but on Linux you can get it from either
of these.

    substitute(system('readlink /proc/$PPID/exe'), '\n$', '', '')
    substitute(system('ls -l /proc/$PPID/exe'), '^.*-> \(.*\)\n$', '\1', '')

HTH,
Gary

-- 
-- 
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/d/optout.

Raspunde prin e-mail lui