git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
588b3e6
)
net: Make arguments available to python commands as sys.argv.
author
Jelmer Vernooij
<jelmer@samba.org>
Tue, 29 Dec 2009 15:08:17 +0000
(16:08 +0100)
committer
Jelmer Vernooij
<jelmer@ganieda.vernstok.nl>
Tue, 29 Dec 2009 15:26:21 +0000
(16:26 +0100)
source4/utils/net/net.c
patch
|
blob
|
history
diff --git
a/source4/utils/net/net.c
b/source4/utils/net/net.c
index f761ef4050a50edf52c68e9268843e1513e91ffc..68fee9709ff7391aaf52668b1df29dcc8f28f583 100644
(file)
--- 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();