From 94454ad07393e1fea0b04ede96fe95893ed2d00e Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 29 Dec 2009 16:08:17 +0100 Subject: [PATCH] net: Make arguments available to python commands as sys.argv. --- source4/utils/net/net.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source4/utils/net/net.c b/source4/utils/net/net.c index f761ef4050a..68fee9709ff 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(); -- 2.11.4.GIT