summaryrefslogtreecommitdiff
path: root/source4/utils/net
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-12-29 16:08:17 +0100
committerJelmer Vernooij <jelmer@ganieda.vernstok.nl>2009-12-29 16:26:21 +0100
commit94454ad07393e1fea0b04ede96fe95893ed2d00e (patch)
tree1fc7b815766c3c8ad61469cf789f8311455f9215 /source4/utils/net
parent588b3e61812978f73d2708ec37da30726ac8026e (diff)
downloadsamba-94454ad07393e1fea0b04ede96fe95893ed2d00e.tar.gz
samba-94454ad07393e1fea0b04ede96fe95893ed2d00e.tar.bz2
samba-94454ad07393e1fea0b04ede96fe95893ed2d00e.zip
net: Make arguments available to python commands as sys.argv.
Diffstat (limited to 'source4/utils/net')
-rw-r--r--source4/utils/net/net.c1
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();