summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();