diff options
| author | bwarsaw | 2002-02-23 06:30:01 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-02-23 06:30:01 +0000 |
| commit | e8b23454cbb0a6ec1d2167c1c92b43218cf20feb (patch) | |
| tree | 77057d59fcc69593c3821cd36f9692fd85fe47ba /misc | |
| parent | 5b0e24f97303fe931e86a0e5b87204071033fad5 (diff) | |
| download | mailman-e8b23454cbb0a6ec1d2167c1c92b43218cf20feb.tar.gz mailman-e8b23454cbb0a6ec1d2167c1c92b43218cf20feb.tar.zst mailman-e8b23454cbb0a6ec1d2167c1c92b43218cf20feb.zip | |
Diffstat (limited to 'misc')
| -rw-r--r-- | misc/paths.py.in | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/misc/paths.py.in b/misc/paths.py.in index f774558d1..b42d0d361 100644 --- a/misc/paths.py.in +++ b/misc/paths.py.in @@ -38,11 +38,12 @@ if exec_prefix == '${prefix}': # directory. sys.path.insert(0, prefix) -# Include Python's site-packages directory. We need this even for Python 2.2 -# since the email package has some patches not included in 2.2 final (though -# likely included in a 2.2 patch release, not available as of this writing -# 29-Jan-2002). That's why we prepend sitedir to sys.path, not append it. -import sys +# We also need the pythonlib directory on the path to pick up any overrides of +# standard modules and packages. Note that these must go at the front of the +# path for this reason. +sys.path.insert(0, os.path.join(prefix, 'pythonlib')) + +# Include Python's site-packages directory. sitedir = os.path.join(sys.prefix, 'lib', 'python'+sys.version[:3], 'site-packages') -sys.path.insert(0, sitedir) +sys.path.append(sitedir) |
