A new user interface for you! Read more...

File mod_python-3.5.0-009-7de9a6b-no_user_site_dir.patch of Package apache2-mod_python

From b6ca4dc30590336166c67841c6da9b7554535a25 Mon Sep 17 00:00:00 2001
From: Orion Poplawski <orion@cora.nwra.com>
Date: Tue, 17 Mar 2015 16:14:19 -0600
Subject: [PATCH] Do not load user site directories

---
 src/mod_python.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/mod_python.c b/src/mod_python.c
index 08737d6..8c33c04 100644
--- a/src/mod_python.c
+++ b/src/mod_python.c
@@ -772,6 +772,9 @@ static int python_init(apr_pool_t *p, apr_pool_t *ptemp,
     {
         initialized = 1;
 
+        /* disable user site directories */
+        Py_NoUserSiteDirectory = 1;
+
         /* initialze the interpreter */
         Py_Initialize();