comparison src/if_python.c @ 7416:cd69647bb839 v7.4.1012

commit https://github.com/vim/vim/commit/1000565c3a2439c9a7c9759284814dbf3b8bc20d Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 31 21:03:23 2015 +0100 patch 7.4.1012 Problem: Vim overwrites the value of $PYTHONHOME. Solution: Do not set $PYTHONHOME if it is already set. (Kazuki Sakamoto, closes https://github.com/vim/vim/issues/500)
author Christian Brabandt <cb@256bit.org>
date Thu, 31 Dec 2015 21:15:03 +0100
parents 42717d048817
children 53163e4d9e4f
comparison
equal deleted inserted replaced
7415:28341f2656d1 7416:cd69647bb839
926 goto fail; 926 goto fail;
927 } 927 }
928 #endif 928 #endif
929 929
930 #ifdef PYTHON_HOME 930 #ifdef PYTHON_HOME
931 Py_SetPythonHome(PYTHON_HOME); 931 # ifdef DYNAMIC_PYTHON
932 if (mch_getenv((char_u *)"PYTHONHOME") == NULL)
933 # endif
934 Py_SetPythonHome(PYTHON_HOME);
932 #endif 935 #endif
933 936
934 init_structs(); 937 init_structs();
935 938
936 #if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02070000 939 #if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02070000