/* * If python is enabled (there is installed python on Windows system) return * TRUE, else FALSE. */ int python_enabled(int verbose) { int ret = FAIL; int mustfree = FALSE; char *s = (char *)vim_getenv((char_u *)"PYTHON_DLL", &mustfree); if (s != NULL) ret = python_runtime_link_init(s, verbose); if (mustfree) vim_free(s); if (ret == FAIL) ret = python_runtime_link_init(DYNAMIC_PYTHON_DLL, verbose); return (ret == OK); }
/* * If python is enabled (there is installed python on Windows system) return * TRUE, else FALSE. */ int python_enabled(int verbose) { #ifdef WIN3264 char *dll = DYNAMIC_PYTHON_DLL; #else char *dll = *p_pydll ? (char *)p_pydll : DYNAMIC_PYTHON_DLL; #endif return python_runtime_link_init(dll, verbose) == OK; }
/* * If python is enabled (there is installed python on Windows system) return * TRUE, else FALSE. */ int python_enabled(int verbose) { return python_runtime_link_init(DYNAMIC_PYTHON_DLL, verbose) == OK; }
/* * If python is enabled (there is installed python on Windows system) return * TRUE, else FALSE. */ int python_enabled(int verbose) { return python_runtime_link_init((char *)p_pydll, verbose) == OK; }