mirror of
https://github.com/samba-team/samba.git
synced 2025-02-08 05:57:51 +03:00
net: Make arguments available to python commands as sys.argv.
This commit is contained in:
parent
588b3e6181
commit
94454ad073
@ -339,6 +339,7 @@ static int binary_net(int argc, const char **argv)
|
|||||||
|
|
||||||
py_load_samba_modules();
|
py_load_samba_modules();
|
||||||
Py_Initialize();
|
Py_Initialize();
|
||||||
|
PySys_SetArgv(argc, argv);
|
||||||
py_update_path("bin"); /* FIXME: Can't assume this is always the case */
|
py_update_path("bin"); /* FIXME: Can't assume this is always the case */
|
||||||
|
|
||||||
py_cmds = py_commands();
|
py_cmds = py_commands();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user