please avoid using this module as far as possible
[mod_python.git] / mod_python-3.3.1-no-user-site-directory.patch
1 diff --git a/src/mod_python.c b/src/mod_python.c
2 index 1c8e90e..01cfb1d 100644
3 --- a/src/mod_python.c
4 +++ b/src/mod_python.c
5 @@ -796,7 +796,10 @@ static int python_init(apr_pool_t *p, apr_pool_t *ptemp,
6      if (initialized == 0 || !Py_IsInitialized()) 
7      {
8          initialized = 1;
9 -        
10 +
11 +        /* disable user site directories */
12 +        Py_NoUserSiteDirectory = 1;
13 +
14          /* initialze the interpreter */
15          Py_Initialize();
16