net: Make arguments available to python commands as sys.argv.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 29 Dec 2009 15:08:17 +0000 (16:08 +0100)
committerJelmer Vernooij <jelmer@ganieda.vernstok.nl>
Tue, 29 Dec 2009 15:26:21 +0000 (16:26 +0100)
source4/utils/net/net.c

index f761ef4050a50edf52c68e9268843e1513e91ffc..68fee9709ff7391aaf52668b1df29dcc8f28f583 100644 (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();