1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-27 07:42:04 +03:00

python: Give precedence to Samba's syspath over the already set system one.

(This used to be commit f3ebaf0a0c)
This commit is contained in:
Jelmer Vernooij
2008-01-25 12:16:13 +01:00
parent 1c5e713cce
commit 21f5f4d440

View File

@ -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);
}