diff options
author | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2019-10-06 04:03:04 +0900 |
---|---|---|
committer | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2019-10-06 04:03:04 +0900 |
commit | 00e61527d61b62de28af5b6aecf53b0c28197bcc (patch) | |
tree | f273eb2e65d79a0719532805d691b25f0e37f18a /misc/paths.py.in | |
parent | 39466113d86105357f774d034094d47bcc6c41e1 (diff) | |
parent | 959b5819bf80392f0a7408d12540fec68654fa04 (diff) | |
download | mailman2-00e61527d61b62de28af5b6aecf53b0c28197bcc.tar.gz mailman2-00e61527d61b62de28af5b6aecf53b0c28197bcc.tar.xz mailman2-00e61527d61b62de28af5b6aecf53b0c28197bcc.zip |
sync with lp:mailman/2.1 up to 1822
Diffstat (limited to 'misc/paths.py.in')
-rw-r--r-- | misc/paths.py.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/misc/paths.py.in b/misc/paths.py.in index 1491639b..e05875e3 100644 --- a/misc/paths.py.in +++ b/misc/paths.py.in @@ -67,6 +67,16 @@ distdir = os.path.join(sys.prefix, 'lib', 'python'+sys.version[:3], 'dist-packages') sys.path.append(distdir) +# Some distros may have the python library in a directory other than lib/ +# such as Lib/ or lib64/. Hopefully they will have hacked +# site.getsitepackages() to return the right thing. +try: + import site + sys.path.extend(site.getsitepackages()) + del site +except (ImportError, AttributeError): + pass + # In a normal interactive Python environment, the japanese.pth and korean.pth # files would be imported automatically. But because we inhibit the importing |