Code

Ticket #4296: modpython.diff

File modpython.diff, 585 bytes (added by Simon G. <dev@…>, 7 years ago)
Line 
1Index: modpython.txt
2===================================================================
3--- modpython.txt       (revision 5769)
4+++ modpython.txt       (working copy)
5@@ -63,6 +63,13 @@
6         **PythonPath "['/path/to/project'] + sys.path"**
7     </Location>
8 
9+Note that ``PYTHONPATH`` should be the parent directory of any module(s) you want to
10+use, so if your application ``mysite`` is in the ``/var/www/mysite`` directory, then you
11+should use:
12+
13+    PythonPath "['/var/www'] + sys.path"
14+
15+
16 .. caution::
17 
18     If you're using Windows, remember that the path will contain backslashes.