We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d8ddc5d + e73d89f commit dcafb48Copy full SHA for dcafb48
2 files changed
src/if_python.c
@@ -932,7 +932,10 @@ Python_Init(void)
932
#endif
933
934
#ifdef PYTHON_HOME
935
- Py_SetPythonHome(PYTHON_HOME);
+# ifdef DYNAMIC_PYTHON
936
+ if (mch_getenv((char_u *)"PYTHONHOME") == NULL)
937
+# endif
938
+ Py_SetPythonHome(PYTHON_HOME);
939
940
941
init_structs();
src/if_python3.c
@@ -858,7 +858,10 @@ Python3_Init(void)
858
859
860
#ifdef PYTHON3_HOME
861
- Py_SetPythonHome(PYTHON3_HOME);
+# ifdef DYNAMIC_PYTHON3
862
863
864
+ Py_SetPythonHome(PYTHON3_HOME);
865
866
867
PyImport_AppendInittab("vim", Py3Init_vim);
0 commit comments