diff options
| author | bwarsaw | 2001-10-01 16:17:21 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-10-01 16:17:21 +0000 |
| commit | da7911a17a85385177628b7c5b2f0357882857cb (patch) | |
| tree | f9ff9d9d44c3977c4ba8be26c3b1e120c2a49166 /misc/paths.py.in | |
| parent | c761d1a1d2300fef07fce3781885d9b73b664b95 (diff) | |
| download | mailman-da7911a17a85385177628b7c5b2f0357882857cb.tar.gz mailman-da7911a17a85385177628b7c5b2f0357882857cb.tar.zst mailman-da7911a17a85385177628b7c5b2f0357882857cb.zip | |
Move the path hacking stuff from Defaults.py.in to here.
Diffstat (limited to '')
| -rw-r--r-- | misc/paths.py.in | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/misc/paths.py.in b/misc/paths.py.in index fa69c4f02..9d33e183d 100644 --- a/misc/paths.py.in +++ b/misc/paths.py.in @@ -1,6 +1,6 @@ # -*- python -*- -# Copyright (C) 1998,1999,2000 by the Free Software Foundation, Inc. +# Copyright (C) 1998,1999,2000,2001 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -31,7 +31,15 @@ exec_prefix = '@exec_prefix@' if exec_prefix == '${prefix}': exec_prefix = prefix -# hack the path to include the parent directory of the $prefix/Mailman package -# directory. +# Hack the path to include the parent directory of the $prefix/Mailman package +# directory. Also include Python's site-packages directory if it isn't +# already part of the search path. We need this until we require Python 2.2, +# which includes the email package in its standard library. Until then, we +# distribute the email package as a distutils install. import sys +import os + sys.path.insert(0, prefix) +sitedir = os.path.join(sys.prefix, 'lib', 'python'+sys.version[:3], + 'site-packages') +sys.path.append(sitedir) |
