summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-01-25 12:16:13 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-01-25 12:16:13 +0100
commit21f5f4d4409e5a7076194639570f11ec32cf3257 (patch)
treec295d57a3fe9d748e9c56f4b3e19f5eed8af510f /source4/scripting/python
parent1c5e713cceb6a4467540043df4087fe3f9f335d5 (diff)
downloadsamba-21f5f4d4409e5a7076194639570f11ec32cf3257.tar.gz
samba-21f5f4d4409e5a7076194639570f11ec32cf3257.tar.bz2
samba-21f5f4d4409e5a7076194639570f11ec32cf3257.zip
python: Give precedence to Samba's syspath over the already set system one.
(This used to be commit f3ebaf0a0c0b881da28063c69bb6306f6aa1c774)
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/modules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/modules.c b/source4/scripting/python/modules.c
index fff981e941..2ecad20b8e 100644
--- a/source4/scripting/python/modules.c
+++ b/source4/scripting/python/modules.c
@@ -62,7 +62,7 @@ void py_load_samba_modules(void)
void py_update_path(const char *bindir)
{
char *newpath;
- asprintf(&newpath, "%s:%s/python:%s/../scripting/python", Py_GetPath(), bindir, bindir);
+ asprintf(&newpath, "%s/python:%s/../scripting/python:%s", bindir, bindir, Py_GetPath());
PySys_SetPath(newpath);
free(newpath);
}