1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

net: Make arguments available to python commands as sys.argv.

This commit is contained in:
Jelmer Vernooij 2009-12-29 16:08:17 +01:00 committed by Jelmer Vernooij
parent 588b3e6181
commit 94454ad073

View File

@ -339,6 +339,7 @@ static int binary_net(int argc, const char **argv)
py_load_samba_modules();
Py_Initialize();
PySys_SetArgv(argc, argv);
py_update_path("bin"); /* FIXME: Can't assume this is always the case */
py_cmds = py_commands();