git.schokokeks.org
Repositories
Help
Report an Issue
keks-overlay.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
6413ac8
Branches
Tags
master
keks-overlay.git
net-mail
mailman
files
mailman-fix-sitedir.diff
fix mailman sitedir with lib64/lib split
Hanno
commited
6413ac8
at 2019-08-04 09:57:35
mailman-fix-sitedir.diff
Blame
History
Raw
diff -Naurp a/misc/paths.py.in b/misc/paths.py.in --- a/misc/paths.py.in 2018-07-25 00:01:28.000000000 +0200 +++ b/misc/paths.py.in 2019-08-03 11:56:57.032059619 +0200 @@ -26,6 +26,7 @@ import os import sys +import site # some scripts expect this attribute to be in this module prefix = '@prefix@' @@ -58,9 +59,9 @@ sys.path.insert(0, prefix) 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.append(sitedir) +sitedirs = site.getsitepackages() +for sitedir in sitedirs: + sys.path.append(sitedir) # Include Python's dist-packages directory. distdir = os.path.join(sys.prefix, 'lib', 'python'+sys.version[:3],