0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 7.4.1012

Problem:    Vim overwrites the value of $PYTHONHOME.
Solution:   Do not set $PYTHONHOME if it is already set. (Kazuki Sakamoto,
            closes #500)
This commit is contained in:
Bram Moolenaar
2015-12-31 21:03:23 +01:00
parent 2bf2417612
commit 1000565c3a
3 changed files with 10 additions and 2 deletions

View File

@@ -928,7 +928,10 @@ Python_Init(void)
#endif #endif
#ifdef PYTHON_HOME #ifdef PYTHON_HOME
Py_SetPythonHome(PYTHON_HOME); # ifdef DYNAMIC_PYTHON
if (mch_getenv((char_u *)"PYTHONHOME") == NULL)
# endif
Py_SetPythonHome(PYTHON_HOME);
#endif #endif
init_structs(); init_structs();

View File

@@ -858,7 +858,10 @@ Python3_Init(void)
#ifdef PYTHON3_HOME #ifdef PYTHON3_HOME
Py_SetPythonHome(PYTHON3_HOME); # ifdef DYNAMIC_PYTHON3
if (mch_getenv((char_u *)"PYTHONHOME") == NULL)
# endif
Py_SetPythonHome(PYTHON3_HOME);
#endif #endif
PyImport_AppendInittab("vim", Py3Init_vim); PyImport_AppendInittab("vim", Py3Init_vim);

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1012,
/**/ /**/
1011, 1011,
/**/ /**/