we need to have PYTHONARCHDIR first, as that is where we currently
install. That will minimise problems with upgrades from old installs.
We also don't need to add the path twice if PYTHONDIR is the same as
PYTHONARCHDIR (as happens on debian based systems)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
return false;
}
- if (!PySys_PathPrepend(py_path, dyn_PYTHONARCHDIR)) {
+ if (!PySys_PathPrepend(py_path, dyn_PYTHONDIR)) {
return false;
}
- if (!PySys_PathPrepend(py_path, dyn_PYTHONDIR)) {
- return false;
+ if (strcmp(dyn_PYTHONARCHDIR, dyn_PYTHONDIR) != 0) {
+ if (!PySys_PathPrepend(py_path, dyn_PYTHONARCHDIR)) {
+ return false;
+ }
}
return true;