1
0
forked from aniani/vim

updated for version 7.2-045

This commit is contained in:
Bram Moolenaar
2008-11-20 10:04:53 +00:00
parent 0cd49305c4
commit 9774ecc80c
2 changed files with 10 additions and 1 deletions

View File

@@ -531,6 +531,12 @@ Python_Init(void)
if (PythonMod_Init()) if (PythonMod_Init())
goto fail; goto fail;
/* Remove the element from sys.path that was added because of our
* argv[0] value in PythonMod_Init(). Previously we used an empty
* string, but dependinding on the OS we then get an empty entry or
* the current directory in sys.path. */
PyRun_SimpleString("import sys; sys.path = filter(lambda x: x != '/must>not&exist', sys.path)");
/* the first python thread is vim's, release the lock */ /* the first python thread is vim's, release the lock */
Python_SaveThread(); Python_SaveThread();
@@ -2345,7 +2351,8 @@ PythonMod_Init(void)
{ {
PyObject *mod; PyObject *mod;
PyObject *dict; PyObject *dict;
static char *(argv[2]) = {"", NULL}; /* The special value is removed from sys.path in Python_Init(). */
static char *(argv[2]) = {"/must>not&exist/foo", NULL};
/* Fixups... */ /* Fixups... */
BufferType.ob_type = &PyType_Type; BufferType.ob_type = &PyType_Type;

View File

@@ -676,6 +676,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 */
/**/
45,
/**/ /**/
44, 44,
/**/ /**/