Mercurial > vim
comparison src/option.c @ 13154:53cc7ea77c54 v8.0.1451
patch 8.0.1451: difficult to set the python home directories properly
commit https://github.com/vim/vim/commit/94073167e3aa8cbe18380e93a2fc8e8165438cc8
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 31 21:49:05 2018 +0100
patch 8.0.1451: difficult to set the python home directories properly
Problem: It is difficult to set the python home directory properly for
Python 2.7 and 3.5 since both use $PYTHONHOME.
Solution: Add the 'pythonhome' and 'pythonthreehome' options. (Kazuki
Sakamoto, closes #1266)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 31 Jan 2018 22:00:07 +0100 |
parents | 8566eaa08788 |
children | 51521b8a370c |
comparison
equal
deleted
inserted
replaced
13153:c30f721849cb | 13154:53cc7ea77c54 |
---|---|
2246 #else | 2246 #else |
2247 (char_u *)NULL, PV_NONE, | 2247 (char_u *)NULL, PV_NONE, |
2248 {(char_u *)NULL, (char_u *)0L} | 2248 {(char_u *)NULL, (char_u *)0L} |
2249 #endif | 2249 #endif |
2250 SCRIPTID_INIT}, | 2250 SCRIPTID_INIT}, |
2251 {"pythonthreehome", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE, | |
2252 #if defined(FEAT_PYTHON3) | |
2253 (char_u *)&p_py3home, PV_NONE, | |
2254 {(char_u *)"", (char_u *)0L} | |
2255 #else | |
2256 (char_u *)NULL, PV_NONE, | |
2257 {(char_u *)NULL, (char_u *)0L} | |
2258 #endif | |
2259 SCRIPTID_INIT}, | |
2251 {"pythondll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE, | 2260 {"pythondll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE, |
2252 #if defined(DYNAMIC_PYTHON) | 2261 #if defined(DYNAMIC_PYTHON) |
2253 (char_u *)&p_pydll, PV_NONE, | 2262 (char_u *)&p_pydll, PV_NONE, |
2254 {(char_u *)DYNAMIC_PYTHON_DLL, (char_u *)0L} | 2263 {(char_u *)DYNAMIC_PYTHON_DLL, (char_u *)0L} |
2264 #else | |
2265 (char_u *)NULL, PV_NONE, | |
2266 {(char_u *)NULL, (char_u *)0L} | |
2267 #endif | |
2268 SCRIPTID_INIT}, | |
2269 {"pythonhome", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE, | |
2270 #if defined(FEAT_PYTHON) | |
2271 (char_u *)&p_pyhome, PV_NONE, | |
2272 {(char_u *)"", (char_u *)0L} | |
2255 #else | 2273 #else |
2256 (char_u *)NULL, PV_NONE, | 2274 (char_u *)NULL, PV_NONE, |
2257 {(char_u *)NULL, (char_u *)0L} | 2275 {(char_u *)NULL, (char_u *)0L} |
2258 #endif | 2276 #endif |
2259 SCRIPTID_INIT}, | 2277 SCRIPTID_INIT}, |