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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user