Thanks for your suggestion. I am using Mac, so strace is not available. So far what i can do is to manually add sys path every time using python in vim script…
On Dec 8, 2011, at 5:56 AM, Marc Weber wrote: > Excerpts from Zhao Cai's message of Thu Dec 08 02:18:00 +0100 2011: >> Hi, >> >> Can anyone tell me how (mac)vim decides which python to use when there are >> more than one python installation in the system? > I'd run > $strace -o/tmp/file vim > , then do a :py print "test" command. > Then open /tmp/file, search for libpython2.7.so or such. > > I don't know exactly how this shared library is found (or whether Python > has been compiled into Vim on Mac). Usually you add other library paths > to the search PATH by setting LD_LIBRARY_PATH. > > Marc Weber > > -- > You received this message from the "vim_use" 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 from the "vim_use" 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
