summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/modules.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/scripting/python/modules.c b/source4/scripting/python/modules.c
index f2a45a9893..9c6a008558 100644
--- a/source4/scripting/python/modules.c
+++ b/source4/scripting/python/modules.c
@@ -50,12 +50,14 @@ bool py_update_path()
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;