git.samba.org
/
metze
/
samba
/
wb-ndr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64babbe
)
python: Give precedence to Samba's syspath over the already set system one.
author
Jelmer Vernooij
<jelmer@samba.org>
Fri, 25 Jan 2008 11:16:13 +0000
(12:16 +0100)
committer
Jelmer Vernooij
<jelmer@samba.org>
Fri, 25 Jan 2008 11:16:13 +0000
(12:16 +0100)
source/scripting/python/modules.c
patch
|
blob
|
history
diff --git
a/source/scripting/python/modules.c
b/source/scripting/python/modules.c
index fff981e94176c1bf4eab060fcbd261c4c61e5afd..2ecad20b8effe12a80c153aa62860ed31caacd4b 100644
(file)
--- a/
source/scripting/python/modules.c
+++ b/
source/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);
}