summaryrefslogtreecommitdiff
path: root/source4/scripting/python/modules.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/python/modules.c')
-rw-r--r--source4/scripting/python/modules.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/source4/scripting/python/modules.c b/source4/scripting/python/modules.c
index 960239e863..f2a45a9893 100644
--- a/source4/scripting/python/modules.c
+++ b/source4/scripting/python/modules.c
@@ -31,7 +31,7 @@ static bool PySys_PathPrepend(PyObject *list, const char *path)
return (PyList_Insert(list, 0, py_path) == 0);
}
-bool py_update_path(const char *bindir)
+bool py_update_path()
{
char *newpath;
PyObject *mod_sys, *py_path;
@@ -58,23 +58,5 @@ bool py_update_path(const char *bindir)
return false;
}
- if (asprintf(&newpath, "%s/../scripting/python", bindir) < 0) {
- return false;
- }
- if (!PySys_PathPrepend(py_path, newpath)) {
- free(newpath);
- return false;
- }
- free(newpath);
-
- if (asprintf(&newpath, "%s/python", bindir) < 0) {
- return false;
- }
- if (!PySys_PathPrepend(py_path, newpath)) {
- free(newpath);
- return false;
- }
- free(newpath);
-
return true;
}