diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2009-12-29 16:08:17 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@ganieda.vernstok.nl> | 2009-12-29 16:26:21 +0100 |
commit | 94454ad07393e1fea0b04ede96fe95893ed2d00e (patch) | |
tree | 1fc7b815766c3c8ad61469cf789f8311455f9215 /source4 | |
parent | 588b3e61812978f73d2708ec37da30726ac8026e (diff) | |
download | samba-94454ad07393e1fea0b04ede96fe95893ed2d00e.tar.gz samba-94454ad07393e1fea0b04ede96fe95893ed2d00e.tar.bz2 samba-94454ad07393e1fea0b04ede96fe95893ed2d00e.zip |
net: Make arguments available to python commands as sys.argv.
Diffstat (limited to 'source4')
-rw-r--r-- | source4/utils/net/net.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/utils/net/net.c b/source4/utils/net/net.c index f761ef4050..68fee9709f 100644 --- a/source4/utils/net/net.c +++ b/source4/utils/net/net.c @@ -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(); |